Indicate whether a field has been read from a restart file.
Definition at line 127 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...
|
| |
Indicate whether a field has been read from a restart file.
Definition at line 127 of file MOM_restart.F90.
◆ 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 536 of file MOM_restart.F90.
536 real,
target,
intent(in) :: f_ptr
537 type(mom_restart_cs),
pointer :: cs
538 logical :: query_initialized
543 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
544 "query_initialized: Module must be initialized before it is used.")
545 if (cs%novars > cs%max_fields)
call restart_error(cs)
547 query_initialized = .false.
550 if (
associated(cs%var_ptr0d(m)%p,f_ptr))
then 551 if (cs%restart_field(m)%initialized) query_initialized = .true.
557 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 675 of file MOM_restart.F90.
675 real,
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_ptr0d(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_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 563 of file MOM_restart.F90.
563 real,
dimension(:),
target,
intent(in) :: f_ptr
564 type(mom_restart_cs),
pointer :: cs
565 logical :: query_initialized
570 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
571 "query_initialized: Module must be initialized before it is used.")
572 if (cs%novars > cs%max_fields)
call restart_error(cs)
574 query_initialized = .false.
577 if (
associated(cs%var_ptr1d(m)%p,f_ptr))
then 578 if (cs%restart_field(m)%initialized) query_initialized = .true.
584 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 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_ptr1d(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 "probably because of the suspect comparison of pointers by ASSOCIATED.")
738 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 590 of file MOM_restart.F90.
590 real,
dimension(:,:), &
591 target,
intent(in) :: f_ptr
592 type(mom_restart_cs),
pointer :: cs
593 logical :: query_initialized
598 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
599 "query_initialized: Module must be initialized before it is used.")
600 if (cs%novars > cs%max_fields)
call restart_error(cs)
602 query_initialized = .false.
605 if (
associated(cs%var_ptr2d(m)%p,f_ptr))
then 606 if (cs%restart_field(m)%initialized) query_initialized = .true.
612 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 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_ptr2d(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 "probably because of the suspect comparison of pointers by ASSOCIATED.")
774 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 618 of file MOM_restart.F90.
618 real,
dimension(:,:,:), &
619 target,
intent(in) :: f_ptr
620 type(mom_restart_cs),
pointer :: cs
621 logical :: query_initialized
626 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
627 "query_initialized: Module must be initialized before it is used.")
628 if (cs%novars > cs%max_fields)
call restart_error(cs)
630 query_initialized = .false.
633 if (
associated(cs%var_ptr3d(m)%p,f_ptr))
then 634 if (cs%restart_field(m)%initialized) query_initialized = .true.
640 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 782 of file MOM_restart.F90.
782 real,
dimension(:,:,:), &
783 target,
intent(in) :: f_ptr
784 character(len=*),
intent(in) :: name
785 type(mom_restart_cs),
pointer :: cs
786 logical :: query_initialized
791 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
792 "query_initialized: Module must be initialized before it is used.")
793 if (cs%novars > cs%max_fields)
call restart_error(cs)
795 query_initialized = .false.
798 if (
associated(cs%var_ptr3d(m)%p,f_ptr))
then 799 if (cs%restart_field(m)%initialized) query_initialized = .true.
805 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
806 if (n==cs%novars+1)
then 808 call mom_error(note,
"MOM_restart: Unable to find "//name//
" queried by pointer, "//&
809 "possibly because of the suspect comparison of pointers by ASSOCIATED.")
810 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 646 of file MOM_restart.F90.
646 real,
dimension(:,:,:,:), &
647 target,
intent(in) :: f_ptr
648 type(mom_restart_cs),
pointer :: cs
649 logical :: query_initialized
654 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
655 "query_initialized: Module must be initialized before it is used.")
656 if (cs%novars > cs%max_fields)
call restart_error(cs)
658 query_initialized = .false.
661 if (
associated(cs%var_ptr4d(m)%p,f_ptr))
then 662 if (cs%restart_field(m)%initialized) query_initialized = .true.
668 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 818 of file MOM_restart.F90.
818 real,
dimension(:,:,:,:), &
819 target,
intent(in) :: f_ptr
820 character(len=*),
intent(in) :: name
821 type(mom_restart_cs),
pointer :: cs
822 logical :: query_initialized
827 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
828 "query_initialized: Module must be initialized before it is used.")
829 if (cs%novars > cs%max_fields)
call restart_error(cs)
831 query_initialized = .false.
834 if (
associated(cs%var_ptr4d(m)%p,f_ptr))
then 835 if (cs%restart_field(m)%initialized) query_initialized = .true.
841 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
842 if (n==cs%novars+1)
then 844 call mom_error(note,
"MOM_restart: Unable to find "//name//
" queried by pointer, "//&
845 "possibly because of the suspect comparison of pointers by ASSOCIATED.")
846 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 502 of file MOM_restart.F90.
502 character(len=*),
intent(in) :: name
503 type(mom_restart_cs),
pointer :: cs
504 logical :: query_initialized
509 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
510 "query_initialized: Module must be initialized before it is used.")
511 if (cs%novars > cs%max_fields)
call restart_error(cs)
513 query_initialized = .false.
516 if (trim(name) == cs%restart_field(m)%var_name)
then 517 if (cs%restart_field(m)%initialized) query_initialized = .true.
523 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
524 if ((n==cs%novars+1) .and. (is_root_pe())) &
525 call mom_error(note,
"MOM_restart: Unknown restart variable "//name// &
526 " queried for initialization.")
528 if ((is_root_pe()) .and. query_initialized) &
529 call mom_error(note,
"MOM_restart: "//name// &
530 " initialization confirmed by name.")
The documentation for this interface was generated from the following file: