Loading...
Searching...
No Matches
dc_scaledsec::operator(==) Interface Reference

Public Member Functions

logical function dcscaledsec_eq_ss (sclsec1, sclsec2)
logical function dcscaledsec_eq_si (sclsec, sec)
logical function dcscaledsec_eq_is (sec, sclsec)
logical function dcscaledsec_eq_sr (sclsec, sec)
logical function dcscaledsec_eq_rs (sec, sclsec)
logical function dcscaledsec_eq_sd (sclsec, sec)
logical function dcscaledsec_eq_ds (sec, sclsec)

Detailed Description

Definition at line 86 of file dc_scaledsec.f90.

Member Function/Subroutine Documentation

◆ dcscaledsec_eq_ds()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_ds ( real(dp), intent(in) sec,
type(dc_scaled_sec), intent(in) sclsec )

Definition at line 535 of file dc_scaledsec.f90.

536 implicit none
537 real(DP), intent(in):: sec
538 type(DC_SCALED_SEC), intent(in):: sclsec
539 type(DC_SCALED_SEC):: sclsec2
540 continue
541 sclsec2 = sec
542 result = sclsec == sclsec2

◆ dcscaledsec_eq_is()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_is ( integer, intent(in) sec,
type(dc_scaled_sec), intent(in) sclsec )

Definition at line 489 of file dc_scaledsec.f90.

490 implicit none
491 integer, intent(in):: sec
492 type(DC_SCALED_SEC), intent(in):: sclsec
493 continue
494 result = sclsec == sec

◆ dcscaledsec_eq_rs()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_rs ( real, intent(in) sec,
type(dc_scaled_sec), intent(in) sclsec )

Definition at line 511 of file dc_scaledsec.f90.

512 implicit none
513 real, intent(in):: sec
514 type(DC_SCALED_SEC), intent(in):: sclsec
515 type(DC_SCALED_SEC):: sclsec2
516 continue
517 sclsec2 = sec
518 result = sclsec == sclsec2

◆ dcscaledsec_eq_sd()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_sd ( type(dc_scaled_sec), intent(in) sclsec,
real(dp), intent(in) sec )

Definition at line 523 of file dc_scaledsec.f90.

524 implicit none
525 type(DC_SCALED_SEC), intent(in):: sclsec
526 real(DP), intent(in):: sec
527 type(DC_SCALED_SEC):: sclsec2
528 continue
529 sclsec2 = sec
530 result = sclsec == sclsec2

◆ dcscaledsec_eq_si()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_si ( type(dc_scaled_sec), intent(in) sclsec,
integer, intent(in) sec )

Definition at line 455 of file dc_scaledsec.f90.

456 implicit none
457 type(DC_SCALED_SEC), intent(in):: sclsec
458 integer, intent(in):: sec
459 type(DC_SCALED_SEC):: sclsec2
460 integer:: i, sec1
461 continue
462 if ( sclsec % flag_negative .and. .not. sec < 0 ) then
463 result = .false.
464 return
465 elseif ( .not. sclsec % flag_negative .and. sec < 0 ) then
466 result = .false.
467 return
468 end if
469
470 if ( abs(sec) > scale_factor_int_xx(3) ) then
471 sclsec2 = sec
472 result = sclsec == sclsec2
473 else
474 if ( .not. all( sclsec % sec_ary(imin:-1) == (/0, 0/) ) &
475 & .or. .not. all( sclsec % sec_ary(3:imax) == (/0, 0, 0, 0, 0, 0/) ) ) then
476 result = .false.
477 return
478 end if
479 sec1 = sclsec % sec_ary(0)
480 do i = 1, 2
481 sec1 = sec1 + sclsec % sec_ary(i) * scale_factor_int_xx(i)
482 end do
483 result = sec1 == sec
484 end if

◆ dcscaledsec_eq_sr()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_sr ( type(dc_scaled_sec), intent(in) sclsec,
real, intent(in) sec )

Definition at line 499 of file dc_scaledsec.f90.

500 implicit none
501 type(DC_SCALED_SEC), intent(in):: sclsec
502 real, intent(in):: sec
503 type(DC_SCALED_SEC):: sclsec2
504 continue
505 sclsec2 = sec
506 result = sclsec == sclsec2

◆ dcscaledsec_eq_ss()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_ss ( type(dc_scaled_sec), intent(in) sclsec1,
type(dc_scaled_sec), intent(in) sclsec2 )

Definition at line 423 of file dc_scaledsec.f90.

424 !
425 ! 2 つの DC_SCALED_SEC 型変数の比較
426 !
427 ! Comparison of two "DC_SCALED_SEC" variables
428 !
429 implicit none
430 type(DC_SCALED_SEC), intent(in):: sclsec1, sclsec2
431
432 integer:: i
433 continue
434 if ( sclsec1 % flag_negative .and. .not. sclsec2 % flag_negative ) then
435 result = .false.
436
437 return
438 elseif ( .not. sclsec1 % flag_negative .and. sclsec2 % flag_negative ) then
439 result = .false.
440 return
441 end if
442
443 do i = imax, imin, -1
444 if ( .not. sclsec1 % sec_ary(i) == sclsec2 % sec_ary(i) ) then
445 result = .false.
446 return
447 end if
448 end do
449
450 result = .true.

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