dc_present::present_and_ne Interface Reference

Private Member Functions

logical function present_and_ne_integer (arg, val)
 
logical function present_and_ne_real (arg, val)
 
logical function present_and_ne_double (arg, val)
 

Detailed Description

Definition at line 57 of file dc_present.f90.

Member Function/Subroutine Documentation

◆ present_and_ne_double()

logical function dc_present::present_and_ne::present_and_ne_double ( real(dp), intent(in), optional  arg,
real(dp), intent(in)  val 
)
private

Definition at line 256 of file dc_present.f90.

256  !
257  ! arg が省略されておらず、且つ val と等しくない場合、
258  ! <tt>.true.</tt> が返ります。
259  !
260  logical :: result
261  real(DP),intent(in),optional :: arg
262  real(DP),intent(in) :: val
263  continue
264  if(present(arg)) then
265  if(arg/=val) then
266  result=.true.
267  else
268  result=.false.
269  endif
270  else
271  result=.false.
272  endif

◆ present_and_ne_integer()

logical function dc_present::present_and_ne::present_and_ne_integer ( integer, intent(in), optional  arg,
integer, intent(in)  val 
)
private

Definition at line 216 of file dc_present.f90.

216  !
217  ! arg が省略されておらず、且つ val と等しくない場合、
218  ! <tt>.true.</tt> が返ります。
219  !
220  logical :: result
221  integer,intent(in),optional :: arg
222  integer,intent(in) :: val
223  continue
224  if(present(arg)) then
225  if(arg/=val) then
226  result=.true.
227  else
228  result=.false.
229  endif
230  else
231  result=.false.
232  endif

◆ present_and_ne_real()

logical function dc_present::present_and_ne::present_and_ne_real ( real, intent(in), optional  arg,
real, intent(in)  val 
)
private

Definition at line 236 of file dc_present.f90.

236  !
237  ! arg が省略されておらず、且つ val と等しくない場合、
238  ! <tt>.true.</tt> が返ります。
239  !
240  logical :: result
241  real,intent(in),optional :: arg
242  real,intent(in) :: val
243  continue
244  if(present(arg)) then
245  if(arg/=val) then
246  result=.true.
247  else
248  result=.false.
249  endif
250  else
251  result=.false.
252  endif

The documentation for this interface was generated from the following file: