Definition at line 143 of file MOM_restart.F90.
|
logical function | query_initialized_name (name, CS) |
|
logical function | query_initialized_0d (f_ptr, CS) |
|
logical function | query_initialized_0d_name (f_ptr, name, CS) |
|
logical function | query_initialized_1d (f_ptr, CS) |
|
logical function | query_initialized_1d_name (f_ptr, name, CS) |
|
logical function | query_initialized_2d (f_ptr, CS) |
|
logical function | query_initialized_2d_name (f_ptr, name, CS) |
|
logical function | query_initialized_3d (f_ptr, CS) |
|
logical function | query_initialized_3d_name (f_ptr, name, CS) |
|
logical function | query_initialized_4d (f_ptr, CS) |
|
logical function | query_initialized_4d_name (f_ptr, name, CS) |
|
◆ query_initialized_0d()
logical function mom_restart::query_initialized::query_initialized_0d |
( |
real, target |
f_ptr, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Definition at line 381 of file MOM_restart.F90.
381 real,
target :: f_ptr
382 type(mom_restart_cs),
pointer :: cs
383 logical :: query_initialized
391 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
392 "query_initialized: Module must be initialized before it is used.")
393 if (cs%novars > cs%max_fields)
call restart_error(cs)
395 query_initialized = .false.
398 if (
ASSOCIATED(cs%var_ptr0d(m)%p,f_ptr))
then 399 if (cs%restart_field(m)%initialized) query_initialized = .true.
405 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, target |
f_ptr, |
|
|
character(len=*) |
name, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Definition at line 526 of file MOM_restart.F90.
526 real,
target :: f_ptr
527 character(len=*) :: name
528 type(mom_restart_cs),
pointer :: cs
529 logical :: query_initialized
538 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
539 "query_initialized: Module must be initialized before it is used.")
540 if (cs%novars > cs%max_fields)
call restart_error(cs)
542 query_initialized = .false.
545 if (
ASSOCIATED(cs%var_ptr0d(m)%p,f_ptr))
then 546 if (cs%restart_field(m)%initialized) query_initialized = .true.
552 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
553 if (n==cs%novars+1)
then 555 call mom_error(note,
"MOM_restart: Unable to find "//name//
" queried by pointer, "//&
556 "probably because of the suspect comparison of pointers by ASSOCIATED.")
557 query_initialized = query_initialized_name(name, cs)
◆ query_initialized_1d()
logical function mom_restart::query_initialized::query_initialized_1d |
( |
real, dimension(:), target |
f_ptr, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Definition at line 410 of file MOM_restart.F90.
410 real,
dimension(:),
target :: f_ptr
411 type(mom_restart_cs),
pointer :: cs
412 logical :: query_initialized
420 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
421 "query_initialized: Module must be initialized before it is used.")
422 if (cs%novars > cs%max_fields)
call restart_error(cs)
424 query_initialized = .false.
427 if (
ASSOCIATED(cs%var_ptr1d(m)%p,f_ptr))
then 428 if (cs%restart_field(m)%initialized) query_initialized = .true.
434 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(:), target |
f_ptr, |
|
|
character(len=*) |
name, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Definition at line 563 of file MOM_restart.F90.
563 real,
dimension(:),
target :: f_ptr
564 character(len=*) :: name
565 type(mom_restart_cs),
pointer :: cs
566 logical :: query_initialized
575 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
576 "query_initialized: Module must be initialized before it is used.")
577 if (cs%novars > cs%max_fields)
call restart_error(cs)
579 query_initialized = .false.
582 if (
ASSOCIATED(cs%var_ptr1d(m)%p,f_ptr))
then 583 if (cs%restart_field(m)%initialized) query_initialized = .true.
589 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
590 if (n==cs%novars+1)
then 592 call mom_error(note,
"MOM_restart: Unable to find "//name//
" queried by pointer, "//&
593 "probably because of the suspect comparison of pointers by ASSOCIATED.")
594 query_initialized = query_initialized_name(name, cs)
◆ query_initialized_2d()
logical function mom_restart::query_initialized::query_initialized_2d |
( |
real, dimension(:,:), target |
f_ptr, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Definition at line 439 of file MOM_restart.F90.
439 real,
dimension(:,:),
target :: f_ptr
440 type(mom_restart_cs),
pointer :: cs
441 logical :: query_initialized
449 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
450 "query_initialized: Module must be initialized before it is used.")
451 if (cs%novars > cs%max_fields)
call restart_error(cs)
453 query_initialized = .false.
456 if (
ASSOCIATED(cs%var_ptr2d(m)%p,f_ptr))
then 457 if (cs%restart_field(m)%initialized) query_initialized = .true.
463 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(:,:), target |
f_ptr, |
|
|
character(len=*) |
name, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Definition at line 600 of file MOM_restart.F90.
600 real,
dimension(:,:),
target :: f_ptr
601 character(len=*) :: name
602 type(mom_restart_cs),
pointer :: cs
603 logical :: query_initialized
612 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
613 "query_initialized: Module must be initialized before it is used.")
614 if (cs%novars > cs%max_fields)
call restart_error(cs)
616 query_initialized = .false.
619 if (
ASSOCIATED(cs%var_ptr2d(m)%p,f_ptr))
then 620 if (cs%restart_field(m)%initialized) query_initialized = .true.
626 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
627 if (n==cs%novars+1)
then 629 call mom_error(note,
"MOM_restart: Unable to find "//name//
" queried by pointer, "//&
630 "probably because of the suspect comparison of pointers by ASSOCIATED.")
631 query_initialized = query_initialized_name(name, cs)
◆ query_initialized_3d()
logical function mom_restart::query_initialized::query_initialized_3d |
( |
real, dimension(:,:,:), target |
f_ptr, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Definition at line 468 of file MOM_restart.F90.
468 real,
dimension(:,:,:),
target :: f_ptr
469 type(mom_restart_cs),
pointer :: cs
470 logical :: query_initialized
478 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
479 "query_initialized: Module must be initialized before it is used.")
480 if (cs%novars > cs%max_fields)
call restart_error(cs)
482 query_initialized = .false.
485 if (
ASSOCIATED(cs%var_ptr3d(m)%p,f_ptr))
then 486 if (cs%restart_field(m)%initialized) query_initialized = .true.
492 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(:,:,:), target |
f_ptr, |
|
|
character(len=*) |
name, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Definition at line 637 of file MOM_restart.F90.
637 real,
dimension(:,:,:),
target :: f_ptr
638 character(len=*) :: name
639 type(mom_restart_cs),
pointer :: cs
640 logical :: query_initialized
649 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
650 "query_initialized: Module must be initialized before it is used.")
651 if (cs%novars > cs%max_fields)
call restart_error(cs)
653 query_initialized = .false.
656 if (
ASSOCIATED(cs%var_ptr3d(m)%p,f_ptr))
then 657 if (cs%restart_field(m)%initialized) query_initialized = .true.
663 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
664 if (n==cs%novars+1)
then 666 call mom_error(note,
"MOM_restart: Unable to find "//name//
" queried by pointer, "//&
667 "possibly because of the suspect comparison of pointers by ASSOCIATED.")
668 query_initialized = query_initialized_name(name, cs)
◆ query_initialized_4d()
logical function mom_restart::query_initialized::query_initialized_4d |
( |
real, dimension(:,:,:,:), target |
f_ptr, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Definition at line 497 of file MOM_restart.F90.
497 real,
dimension(:,:,:,:),
target :: f_ptr
498 type(mom_restart_cs),
pointer :: cs
499 logical :: query_initialized
507 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
508 "query_initialized: Module must be initialized before it is used.")
509 if (cs%novars > cs%max_fields)
call restart_error(cs)
511 query_initialized = .false.
514 if (
ASSOCIATED(cs%var_ptr4d(m)%p,f_ptr))
then 515 if (cs%restart_field(m)%initialized) query_initialized = .true.
521 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(:,:,:,:), target |
f_ptr, |
|
|
character(len=*) |
name, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Definition at line 674 of file MOM_restart.F90.
674 real,
dimension(:,:,:,:),
target :: f_ptr
675 character(len=*) :: name
676 type(mom_restart_cs),
pointer :: cs
677 logical :: query_initialized
686 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
687 "query_initialized: Module must be initialized before it is used.")
688 if (cs%novars > cs%max_fields)
call restart_error(cs)
690 query_initialized = .false.
693 if (
ASSOCIATED(cs%var_ptr4d(m)%p,f_ptr))
then 694 if (cs%restart_field(m)%initialized) query_initialized = .true.
700 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
701 if (n==cs%novars+1)
then 703 call mom_error(note,
"MOM_restart: Unable to find "//name//
" queried by pointer, "//&
704 "possibly because of the suspect comparison of pointers by ASSOCIATED.")
705 query_initialized = query_initialized_name(name, cs)
◆ query_initialized_name()
logical function mom_restart::query_initialized::query_initialized_name |
( |
character(len=*) |
name, |
|
|
type(mom_restart_cs), pointer |
CS |
|
) |
| |
|
private |
Definition at line 345 of file MOM_restart.F90.
345 character(len=*) :: name
346 type(mom_restart_cs),
pointer :: cs
347 logical :: query_initialized
355 if (.not.
associated(cs))
call mom_error(fatal,
"MOM_restart " // &
356 "query_initialized: Module must be initialized before it is used.")
357 if (cs%novars > cs%max_fields)
call restart_error(cs)
359 query_initialized = .false.
362 if (trim(name) == cs%restart_field(m)%var_name)
then 363 if (cs%restart_field(m)%initialized) query_initialized = .true.
369 if (n<=cs%novars) cs%restart_field(n)%initialized = .true.
370 if ((n==cs%novars+1) .and. (is_root_pe())) &
371 call mom_error(note,
"MOM_restart: Unknown restart variable "//name// &
372 " queried for initialization.")
374 if ((is_root_pe()) .and. query_initialized) &
375 call mom_error(note,
"MOM_restart: "//name// &
376 " initialization confirmed by name.")
The documentation for this interface was generated from the following file:
- /home/adcroft/GitHub/workspace/Gaea-stats-MOM6-examples/MOM6-examples/src/MOM6/src/framework/MOM_restart.F90