Indicate whether a field has been read from a restart file.
Definition at line 116 of file MOM_restart.F90.
|
|
logical function | query_initialized_name (name, CS) |
| query_initialized_name determines whether a named field has been successfully read from a restart file yet. More...
|
|
logical function | query_initialized_0d (f_ptr, CS) |
| Indicate whether the field pointed to by f_ptr has been initialized from a restart file. More...
|
|
logical function | query_initialized_0d_name (f_ptr, name, CS) |
| Indicate whether the field pointed to by f_ptr or with the specified variable name has been initialized from a restart file. More...
|
|
logical function | query_initialized_1d (f_ptr, CS) |
| Indicate whether the field pointed to by f_ptr has been initialized from a restart file. More...
|
|
logical function | query_initialized_1d_name (f_ptr, name, CS) |
| Indicate whether the field pointed to by f_ptr or with the specified variable name has been initialized from a restart file. More...
|
|
logical function | query_initialized_2d (f_ptr, CS) |
| Indicate whether the field pointed to by f_ptr has been initialized from a restart file. More...
|
|
logical function | query_initialized_2d_name (f_ptr, name, CS) |
| Indicate whether the field pointed to by f_ptr or with the specified variable name has been initialized from a restart file. More...
|
|
logical function | query_initialized_3d (f_ptr, CS) |
| Indicate whether the field pointed to by f_ptr has been initialized from a restart file. More...
|
|
logical function | query_initialized_3d_name (f_ptr, name, CS) |
| Indicate whether the field pointed to by f_ptr or with the specified variable name has been initialized from a restart file. More...
|
|
logical function | query_initialized_4d (f_ptr, CS) |
| Indicate whether the field pointed to by f_ptr has been initialized from a restart file. More...
|
|
logical function | query_initialized_4d_name (f_ptr, name, CS) |
| Indicate whether the field pointed to by f_ptr or with the specified variable name has been initialized from a restart file. More...
|
|
◆ query_initialized_0d()
logical function mom_restart::query_initialized::query_initialized_0d |
( |
real, intent(in), target |
f_ptr, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Indicate whether the field pointed to by f_ptr has been initialized from a restart file.
- Parameters
-
[in] | f_ptr | A pointer to the field that is being queried |
| cs | A pointer to a MOM_restart_CS object (intent in) |
Definition at line 464 of file MOM_restart.F90.
464 real,
target,
intent(in) :: f_ptr
465 type(MOM_restart_CS),
pointer :: CS
466 logical :: query_initialized
471 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
472 "query_initialized: Module must be initialized before it is used.")
473 if (cs%novars > cs%max_fields)
call restart_error(cs)
475 query_initialized = .false.
478 if (
associated(cs%var_ptr0d(m)%p,f_ptr))
then
479 if (cs%restart_field(m)%initialized) query_initialized = .true.
485 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
◆ query_initialized_0d_name()
logical function mom_restart::query_initialized::query_initialized_0d_name |
( |
real, intent(in), target |
f_ptr, |
|
|
character(len=*), intent(in) |
name, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Indicate whether the field pointed to by f_ptr or with the specified variable name has been initialized from a restart file.
- Parameters
-
[in] | f_ptr | A pointer to the field that is being queried |
[in] | name | The name of the field that is being queried |
| cs | A pointer to a MOM_restart_CS object (intent in) |
Definition at line 603 of file MOM_restart.F90.
603 real,
target,
intent(in) :: f_ptr
604 character(len=*),
intent(in) :: name
605 type(MOM_restart_CS),
pointer :: CS
606 logical :: query_initialized
611 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
612 "query_initialized: Module must be initialized before it is used.")
613 if (cs%novars > cs%max_fields)
call restart_error(cs)
615 query_initialized = .false.
618 if (
associated(cs%var_ptr0d(m)%p,f_ptr))
then
619 if (cs%restart_field(m)%initialized) query_initialized = .true.
625 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
626 if (n==cs%novars+1)
then
628 call mom_error(note,
"MOM_restart: Unable to find "//name//
" queried by pointer, "//&
629 "probably because of the suspect comparison of pointers by ASSOCIATED.")
630 query_initialized = query_initialized_name(name, cs)
◆ query_initialized_1d()
logical function mom_restart::query_initialized::query_initialized_1d |
( |
real, dimension(:), intent(in), target |
f_ptr, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Indicate whether the field pointed to by f_ptr has been initialized from a restart file.
- Parameters
-
[in] | f_ptr | A pointer to the field that is being queried |
| cs | A pointer to a MOM_restart_CS object (intent in) |
Definition at line 491 of file MOM_restart.F90.
491 real,
dimension(:),
target,
intent(in) :: f_ptr
492 type(MOM_restart_CS),
pointer :: CS
493 logical :: query_initialized
498 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
499 "query_initialized: Module must be initialized before it is used.")
500 if (cs%novars > cs%max_fields)
call restart_error(cs)
502 query_initialized = .false.
505 if (
associated(cs%var_ptr1d(m)%p,f_ptr))
then
506 if (cs%restart_field(m)%initialized) query_initialized = .true.
512 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
◆ query_initialized_1d_name()
logical function mom_restart::query_initialized::query_initialized_1d_name |
( |
real, dimension(:), intent(in), target |
f_ptr, |
|
|
character(len=*), intent(in) |
name, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Indicate whether the field pointed to by f_ptr or with the specified variable name has been initialized from a restart file.
- Parameters
-
[in] | f_ptr | A pointer to the field that is being queried |
[in] | name | The name of the field that is being queried |
| cs | A pointer to a MOM_restart_CS object (intent in) |
Definition at line 638 of file MOM_restart.F90.
638 real,
dimension(:), &
639 target,
intent(in) :: f_ptr
640 character(len=*),
intent(in) :: name
641 type(MOM_restart_CS),
pointer :: CS
642 logical :: query_initialized
647 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
648 "query_initialized: Module must be initialized before it is used.")
649 if (cs%novars > cs%max_fields)
call restart_error(cs)
651 query_initialized = .false.
654 if (
associated(cs%var_ptr1d(m)%p,f_ptr))
then
655 if (cs%restart_field(m)%initialized) query_initialized = .true.
661 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
662 if (n==cs%novars+1)
then
664 call mom_error(note,
"MOM_restart: Unable to find "//name//
" queried by pointer, "//&
665 "probably because of the suspect comparison of pointers by ASSOCIATED.")
666 query_initialized = query_initialized_name(name, cs)
◆ query_initialized_2d()
logical function mom_restart::query_initialized::query_initialized_2d |
( |
real, dimension(:,:), intent(in), target |
f_ptr, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Indicate whether the field pointed to by f_ptr has been initialized from a restart file.
- Parameters
-
[in] | f_ptr | A pointer to the field that is being queried |
| cs | A pointer to a MOM_restart_CS object (intent in) |
Definition at line 518 of file MOM_restart.F90.
518 real,
dimension(:,:), &
519 target,
intent(in) :: f_ptr
520 type(MOM_restart_CS),
pointer :: CS
521 logical :: query_initialized
526 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
527 "query_initialized: Module must be initialized before it is used.")
528 if (cs%novars > cs%max_fields)
call restart_error(cs)
530 query_initialized = .false.
533 if (
associated(cs%var_ptr2d(m)%p,f_ptr))
then
534 if (cs%restart_field(m)%initialized) query_initialized = .true.
540 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
◆ query_initialized_2d_name()
logical function mom_restart::query_initialized::query_initialized_2d_name |
( |
real, dimension(:,:), intent(in), target |
f_ptr, |
|
|
character(len=*), intent(in) |
name, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Indicate whether the field pointed to by f_ptr or with the specified variable name has been initialized from a restart file.
- Parameters
-
[in] | f_ptr | A pointer to the field that is being queried |
[in] | name | The name of the field that is being queried |
| cs | A pointer to a MOM_restart_CS object (intent in) |
Definition at line 674 of file MOM_restart.F90.
674 real,
dimension(:,:), &
675 target,
intent(in) :: f_ptr
676 character(len=*),
intent(in) :: name
677 type(MOM_restart_CS),
pointer :: CS
678 logical :: query_initialized
683 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
684 "query_initialized: Module must be initialized before it is used.")
685 if (cs%novars > cs%max_fields)
call restart_error(cs)
687 query_initialized = .false.
690 if (
associated(cs%var_ptr2d(m)%p,f_ptr))
then
691 if (cs%restart_field(m)%initialized) query_initialized = .true.
697 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
698 if (n==cs%novars+1)
then
700 call mom_error(note,
"MOM_restart: Unable to find "//name//
" queried by pointer, "//&
701 "probably because of the suspect comparison of pointers by ASSOCIATED.")
702 query_initialized = query_initialized_name(name, cs)
◆ query_initialized_3d()
logical function mom_restart::query_initialized::query_initialized_3d |
( |
real, dimension(:,:,:), intent(in), target |
f_ptr, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Indicate whether the field pointed to by f_ptr has been initialized from a restart file.
- Parameters
-
[in] | f_ptr | A pointer to the field that is being queried |
| cs | A pointer to a MOM_restart_CS object (intent in) |
Definition at line 546 of file MOM_restart.F90.
546 real,
dimension(:,:,:), &
547 target,
intent(in) :: f_ptr
548 type(MOM_restart_CS),
pointer :: CS
549 logical :: query_initialized
554 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
555 "query_initialized: Module must be initialized before it is used.")
556 if (cs%novars > cs%max_fields)
call restart_error(cs)
558 query_initialized = .false.
561 if (
associated(cs%var_ptr3d(m)%p,f_ptr))
then
562 if (cs%restart_field(m)%initialized) query_initialized = .true.
568 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
◆ query_initialized_3d_name()
logical function mom_restart::query_initialized::query_initialized_3d_name |
( |
real, dimension(:,:,:), intent(in), target |
f_ptr, |
|
|
character(len=*), intent(in) |
name, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Indicate whether the field pointed to by f_ptr or with the specified variable name has been initialized from a restart file.
- Parameters
-
[in] | f_ptr | A pointer to the field that is being queried |
[in] | name | The name of the field that is being queried |
| cs | A pointer to a MOM_restart_CS object (intent in) |
Definition at line 710 of file MOM_restart.F90.
710 real,
dimension(:,:,:), &
711 target,
intent(in) :: f_ptr
712 character(len=*),
intent(in) :: name
713 type(MOM_restart_CS),
pointer :: CS
714 logical :: query_initialized
719 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
720 "query_initialized: Module must be initialized before it is used.")
721 if (cs%novars > cs%max_fields)
call restart_error(cs)
723 query_initialized = .false.
726 if (
associated(cs%var_ptr3d(m)%p,f_ptr))
then
727 if (cs%restart_field(m)%initialized) query_initialized = .true.
733 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
734 if (n==cs%novars+1)
then
736 call mom_error(note,
"MOM_restart: Unable to find "//name//
" queried by pointer, "//&
737 "possibly because of the suspect comparison of pointers by ASSOCIATED.")
738 query_initialized = query_initialized_name(name, cs)
◆ query_initialized_4d()
logical function mom_restart::query_initialized::query_initialized_4d |
( |
real, dimension(:,:,:,:), intent(in), target |
f_ptr, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Indicate whether the field pointed to by f_ptr has been initialized from a restart file.
- Parameters
-
[in] | f_ptr | A pointer to the field that is being queried |
| cs | A pointer to a MOM_restart_CS object (intent in) |
Definition at line 574 of file MOM_restart.F90.
574 real,
dimension(:,:,:,:), &
575 target,
intent(in) :: f_ptr
576 type(MOM_restart_CS),
pointer :: CS
577 logical :: query_initialized
582 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
583 "query_initialized: Module must be initialized before it is used.")
584 if (cs%novars > cs%max_fields)
call restart_error(cs)
586 query_initialized = .false.
589 if (
associated(cs%var_ptr4d(m)%p,f_ptr))
then
590 if (cs%restart_field(m)%initialized) query_initialized = .true.
596 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
◆ query_initialized_4d_name()
logical function mom_restart::query_initialized::query_initialized_4d_name |
( |
real, dimension(:,:,:,:), intent(in), target |
f_ptr, |
|
|
character(len=*), intent(in) |
name, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Indicate whether the field pointed to by f_ptr or with the specified variable name has been initialized from a restart file.
- Parameters
-
[in] | f_ptr | A pointer to the field that is being queried |
[in] | name | The name of the field that is being queried |
| cs | A pointer to a MOM_restart_CS object (intent in) |
Definition at line 746 of file MOM_restart.F90.
746 real,
dimension(:,:,:,:), &
747 target,
intent(in) :: f_ptr
748 character(len=*),
intent(in) :: name
749 type(MOM_restart_CS),
pointer :: CS
750 logical :: query_initialized
755 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
756 "query_initialized: Module must be initialized before it is used.")
757 if (cs%novars > cs%max_fields)
call restart_error(cs)
759 query_initialized = .false.
762 if (
associated(cs%var_ptr4d(m)%p,f_ptr))
then
763 if (cs%restart_field(m)%initialized) query_initialized = .true.
769 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
770 if (n==cs%novars+1)
then
772 call mom_error(note,
"MOM_restart: Unable to find "//name//
" queried by pointer, "//&
773 "possibly because of the suspect comparison of pointers by ASSOCIATED.")
774 query_initialized = query_initialized_name(name, cs)
◆ query_initialized_name()
logical function mom_restart::query_initialized::query_initialized_name |
( |
character(len=*), intent(in) |
name, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
query_initialized_name determines whether a named field has been successfully read from a restart file yet.
- Parameters
-
[in] | name | The name of the field that is being queried |
| cs | A pointer to a MOM_restart_CS object (intent in) |
Definition at line 430 of file MOM_restart.F90.
430 character(len=*),
intent(in) :: name
431 type(MOM_restart_CS),
pointer :: CS
432 logical :: query_initialized
437 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
438 "query_initialized: Module must be initialized before it is used.")
439 if (cs%novars > cs%max_fields)
call restart_error(cs)
441 query_initialized = .false.
444 if (trim(name) == cs%restart_field(m)%var_name)
then
445 if (cs%restart_field(m)%initialized) query_initialized = .true.
451 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
452 if ((n==cs%novars+1) .and. (is_root_pe())) &
453 call mom_error(note,
"MOM_restart: Unknown restart variable "//name// &
454 " queried for initialization.")
456 if ((is_root_pe()) .and. query_initialized) &
457 call mom_error(note,
"MOM_restart: "//name// &
458 " initialization confirmed by name.")
The documentation for this interface was generated from the following file:
- /glade/work/altuntas/cesm.sandboxes/cesm2_2_alpha_X_mom/components/mom/MOM6/src/framework/MOM_restart.F90