mpp_mod_oa Module Reference

Data Types

type  communicator
type  event
type  clock
type  Clock_Data_Summary
type  Summary_Struct
interface  mpp_max
interface  mpp_min
interface  mpp_sum
interface  mpp_transmit
interface  mpp_recv
interface  mpp_send
interface  mpp_broadcast
interface  mpp_chksum
interface  mpp_error

Functions/Subroutines

subroutine mpp_init (flags, mpp_comm, logfile)
integer stdin ()
integer stdout ()
integer stderr ()
integer stdlog ()
subroutine mpp_exit ()
integer mpp_pe ()
integer mpp_node ()
integer mpp_npes ()
integer mpp_root_pe ()
subroutine mpp_set_root_pe (num)
subroutine mpp_declare_pelist (pelist, name)
subroutine mpp_set_current_pelist (pelist)
subroutine mpp_get_current_pelist (pelist, name)
integer get_peset (pelist)
subroutine mpp_clock_set_grain (grain)
integer mpp_clock_id (name, flags, grain)
subroutine mpp_clock_begin (id)
subroutine mpp_clock_end (id)
subroutine increment_current_clock (event_id, bytes)
subroutine dump_clock_summary ()
integer get_unit ()
subroutine sum_clock_data ()
subroutine clock_init (id, name, flags)
subroutine mpp_sync (pelist)
subroutine mpp_sync_self (pelist)
subroutine mpp_error_basic (errortype, errormsg)
subroutine mpp_error_mesg (routine, errormsg, errortype)
subroutine mpp_error_noargs ()
subroutine mpp_set_warn_level (flag)
integer mpp_error_state ()
subroutine mpp_set_stack_size (n)

Variables

character(len=128) version
character(len=128) tagname
integer in_unit = 5
integer out_unit = 6
integer err_unit = 0
integer log_unit
integer etc_unit
logical module_is_initialized = .FALSE.
integer pe = 0
integer node = 0
integer npes = 1
integer root_pe = 0
integer error
integer, parameter MAXPES = 2048
character(len=32) configfile
character(len=32) etcfile
logical, save logfile_defined = .false.
logical, save opened
integer io_num
integer, parameter MPP_VERBOSE = 1
integer, parameter MPP_DEBUG = 2
logical verbose = .FALSE.
logical debug = .FALSE.
integer, parameter ALL_PES = -1
integer, parameter ANY_PE = -2
integer, parameter NULL_PE = -3
integer, parameter NOTE = 0
integer, parameter WARNING = 1
integer, parameter FATAL = 2
logical warnings_are_fatal = .FALSE.
integer error_state = 0
integer(LONG_KIND), parameter MPP_WAIT = -1
integer(LONG_KIND), parameter MPP_READY = -2
real(DOUBLE_KIND), dimension(:),
allocatable 
mpp_stack
integer mpp_stack_size = 0
integer mpp_stack_hwm = 0
integer, parameter PESET_MAX = 32
type(communicator), dimension(0:peset_max) peset
integer peset_num = 0
integer current_peset_num = 0
integer world_peset_num
integer tick
integer ticks_per_sec
integer max_ticks
integer start_tick
integer end_tick
integer tick0 = 0
real tick_rate
integer, parameter MAX_CLOCKS = 100
integer, parameter MAX_EVENT_TYPES = 5
integer, parameter MAX_EVENTS = 40000
integer, parameter EVENT_ALLREDUCE = 1
integer, parameter EVENT_BROADCAST = 2
integer, parameter EVENT_RECV = 3
integer, parameter EVENT_SEND = 4
integer, parameter EVENT_WAIT = 5
integer clock_num = 0
integer current_clock = 0
integer clock0
integer clock_grain = HUGE(1)
integer, parameter MPP_CLOCK_SYNC = 1
integer, parameter MPP_CLOCK_DETAILED = 2
type(clock), dimension(max_clocks) clocks
integer, parameter MAX_BINS = 20
type(Summary_Struct),
dimension(max_clocks) 
clock_summary

Function/Subroutine Documentation

subroutine mpp_mod_oa::clock_init ( integer,intent(in)  id,
character(len=*),intent(in)  name,
integer,intent(in),optional  flags 
) [private]

Definition at line 1557 of file mpp_mod_oa.F90.

References clock_summary, clocks, EVENT_ALLREDUCE, EVENT_BROADCAST, EVENT_RECV, EVENT_SEND, EVENT_WAIT, MAX_EVENT_TYPES, and tick0.

Referenced by mpp_clock_id().

Here is the caller graph for this function:

subroutine mpp_mod_oa::dump_clock_summary (  )  [private]

Definition at line 1325 of file mpp_mod_oa.F90.

References a, clock_num, clock_summary, clocks, get_unit(), MAX_BINS, and MAX_EVENT_TYPES.

Referenced by mpp_exit().

Here is the call graph for this function:

Here is the caller graph for this function:

integer mpp_mod_oa::get_peset ( integer,dimension(:),intent(in),optional  pelist  )  [private]

Definition at line 1117 of file mpp_mod_oa.F90.

References ascend_sort(), current_peset_num, FATAL, peset, PESET_MAX, peset_num, stderr(), and WARNING.

Referenced by mpp_declare_pelist(), mpp_init(), mpp_set_current_pelist(), mpp_sync(), and mpp_sync_self().

Here is the call graph for this function:

Here is the caller graph for this function:

integer mpp_mod_oa::get_unit (  )  [private]

Definition at line 1458 of file mpp_mod_oa.F90.

References FATAL, not, and opened.

Referenced by dump_clock_summary(), mpp_init(), stderr(), stdlog(), and stdout().

Here is the caller graph for this function:

subroutine mpp_mod_oa::increment_current_clock ( integer,intent(in)  event_id,
integer,intent(in),optional  bytes 
) [private]

Definition at line 1298 of file mpp_mod_oa.F90.

References clock_num, clocks, current_clock, end_tick, FATAL, MAX_EVENTS, max_ticks, start_tick, and WARNING.

Referenced by mpp_sync(), and mpp_sync_self().

Here is the caller graph for this function:

subroutine mpp_mod_oa::mpp_clock_begin ( integer,intent(in)  id  ) 

Definition at line 1255 of file mpp_mod_oa.F90.

References clock_num, clocks, current_clock, current_peset_num, FATAL, and mpp_sync().

Referenced by mpp_init().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine mpp_mod_oa::mpp_clock_end ( integer,intent(in),optional  id  ) 

Definition at line 1276 of file mpp_mod_oa.F90.

References clock_num, clocks, current_clock, current_peset_num, end_tick, FATAL, max_ticks, stderr(), and WARNING.

Referenced by mpp_exit().

Here is the call graph for this function:

Here is the caller graph for this function:

integer mpp_mod_oa::mpp_clock_id ( character(len=*),intent(in)  name,
integer,intent(in),optional  flags,
integer,intent(in),optional  grain 
)

Definition at line 1215 of file mpp_mod_oa.F90.

References clock_grain, clock_init(), clock_num, clocks, FATAL, MAX_CLOCKS, and WARNING.

Referenced by mpp_domains_mod_oa::mpp_domains_init(), and mpp_init().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine mpp_mod_oa::mpp_clock_set_grain ( integer,intent(in)  grain  ) 

Definition at line 1203 of file mpp_mod_oa.F90.

References clock_grain, and FATAL.

subroutine mpp_mod_oa::mpp_declare_pelist ( integer,dimension(:),intent(in)  pelist,
character(len=*),optional  name 
)

Definition at line 1058 of file mpp_mod_oa.F90.

References FATAL, get_peset(), and peset.

Referenced by psmile_io_init_pelist().

Here is the call graph for this function:

Here is the caller graph for this function:

subroutine mpp_mod_oa::mpp_error_basic ( integer,intent(in)  errortype,
character(len=*),intent(in),optional  errormsg 
) [private]

Definition at line 2220 of file mpp_mod_oa.F90.

References error_state, FATAL, mpp_flushstd(), NOTE, peset, stderr(), stdout(), WARNING, and warnings_are_fatal.

Here is the call graph for this function:

subroutine mpp_mod_oa::mpp_error_mesg ( character(len=*),intent(in)  routine,
character(len=*),intent(in)  errormsg,
integer,intent(in)  errortype 
) [private]

Definition at line 2277 of file mpp_mod_oa.F90.

subroutine mpp_mod_oa::mpp_error_noargs (  )  [private]

Definition at line 2284 of file mpp_mod_oa.F90.

References FATAL.

integer mpp_mod_oa::mpp_error_state (  ) 

Definition at line 2301 of file mpp_mod_oa.F90.

References error_state, FATAL, stdout(), and tick.

Here is the call graph for this function:

subroutine mpp_mod_oa::mpp_exit (  ) 
subroutine mpp_mod_oa::mpp_get_current_pelist ( integer,dimension(:),intent(out)  pelist,
character(len=*),intent(out),optional  name 
)

Definition at line 1103 of file mpp_mod_oa.F90.

References current_peset_num, FATAL, and peset.

Referenced by mpp_domains_mod_oa::mpp_broadcast_domain(), and mpp_domains_mod_oa::mpp_define_domains2D().

Here is the caller graph for this function:

subroutine mpp_mod_oa::mpp_init ( integer,intent(in),optional  flags,
integer,intent(in),optional  mpp_comm,
character(len=*),intent(in),optional  logfile 
)
integer mpp_mod_oa::mpp_node (  ) 

Definition at line 1004 of file mpp_mod_oa.F90.

References FATAL, and node.

integer mpp_mod_oa::mpp_npes (  ) 
integer mpp_mod_oa::mpp_pe (  ) 

Definition at line 996 of file mpp_mod_oa.F90.

References FATAL.

Referenced by mpp_domains_mod_oa::mpp_domains_init(), mpp_io_mod_oa::mpp_io_init(), mpp_io_mod_oa::mpp_nullify_axistype_array(), and psmile_open_file_byid().

Here is the caller graph for this function:

integer mpp_mod_oa::mpp_root_pe (  ) 
subroutine mpp_mod_oa::mpp_set_current_pelist ( integer,dimension(:),intent(in),optional  pelist  ) 
subroutine mpp_mod_oa::mpp_set_root_pe ( integer,intent(in)  num  ) 

Definition at line 1029 of file mpp_mod_oa.F90.

References current_peset_num, FATAL, peset, and root_pe.

Referenced by mpp_set_current_pelist().

Here is the caller graph for this function:

subroutine mpp_mod_oa::mpp_set_stack_size ( integer,intent(in)  n  ) 

Definition at line 2345 of file mpp_mod_oa.F90.

References mpp_stack, mpp_stack_size, NOTE, and root_pe.

Referenced by mpp_init(), and psmile_io_init().

Here is the caller graph for this function:

subroutine mpp_mod_oa::mpp_set_warn_level ( integer,intent(in)  flag  ) 

Definition at line 2288 of file mpp_mod_oa.F90.

References FATAL, WARNING, and warnings_are_fatal.

subroutine mpp_mod_oa::mpp_sync ( integer,dimension(:),intent(in),optional  pelist  ) 
subroutine mpp_mod_oa::mpp_sync_self ( integer,dimension(:),intent(in),optional  pelist  ) 

Definition at line 2168 of file mpp_mod_oa.F90.

References current_clock, EVENT_WAIT, get_peset(), increment_current_clock(), MPP_WAIT, peset, and start_tick.

Referenced by mpp_domains_mod_oa::mpp_define_domains2D(), and mpp_sync().

Here is the call graph for this function:

Here is the caller graph for this function:

integer mpp_mod_oa::stderr (  ) 
integer mpp_mod_oa::stdin (  ) 

Definition at line 818 of file mpp_mod_oa.F90.

References in_unit.

Referenced by mpp_io_mod_oa::mpp_io_init(), and mpp_io_mod_oa::mpp_nullify_axistype_array().

Here is the caller graph for this function:

integer mpp_mod_oa::stdlog (  ) 

Definition at line 901 of file mpp_mod_oa.F90.

References configfile, etc_unit, FATAL, get_unit(), log_unit, mpp_flushstd(), and root_pe.

Here is the call graph for this function:

integer mpp_mod_oa::stdout (  ) 
subroutine mpp_mod_oa::sum_clock_data (  )  [private]

Definition at line 1479 of file mpp_mod_oa.F90.

References clock_num, clock_summary, clocks, find_bin(), MAX_EVENT_TYPES, and tick_rate.

Referenced by mpp_exit().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

integer,parameter mpp_mod_oa::ALL_PES = -1

Definition at line 97 of file mpp_mod_oa.F90.

integer,parameter mpp_mod_oa::ANY_PE = -2

Definition at line 199 of file mpp_mod_oa.F90.

Referenced by mpp_exit(), and mpp_init().

Definition at line 200 of file mpp_mod_oa.F90.

Referenced by mpp_clock_id(), and mpp_clock_set_grain().

type(Summary_Struct),dimension(max_clocks) mpp_mod_oa::clock_summary

Definition at line 238 of file mpp_mod_oa.F90.

Referenced by clock_init(), dump_clock_summary(), and sum_clock_data().

type(clock),dimension(max_clocks) mpp_mod_oa::clocks
character(len=32) mpp_mod_oa::configfile

Definition at line 87 of file mpp_mod_oa.F90.

Referenced by mpp_init(), stderr(), and stdlog().

logical mpp_mod_oa::debug = .FALSE.

Definition at line 94 of file mpp_mod_oa.F90.

Definition at line 192 of file mpp_mod_oa.F90.

Referenced by increment_current_clock(), and mpp_clock_end().

Definition at line 80 of file mpp_mod_oa.F90.

Referenced by stderr().

Definition at line 85 of file mpp_mod_oa.F90.

Definition at line 102 of file mpp_mod_oa.F90.

Referenced by mpp_error_basic(), and mpp_error_state().

Definition at line 82 of file mpp_mod_oa.F90.

Referenced by mpp_init(), stdlog(), and stdout().

character(len=32) mpp_mod_oa::etcfile

Definition at line 88 of file mpp_mod_oa.F90.

Referenced by mpp_init(), and stdout().

Definition at line 197 of file mpp_mod_oa.F90.

Referenced by clock_init().

Definition at line 197 of file mpp_mod_oa.F90.

Referenced by clock_init().

Definition at line 197 of file mpp_mod_oa.F90.

Referenced by clock_init().

Definition at line 197 of file mpp_mod_oa.F90.

Referenced by clock_init().

Definition at line 197 of file mpp_mod_oa.F90.

Referenced by clock_init(), mpp_sync(), and mpp_sync_self().

integer,parameter mpp_mod_oa::FATAL = 2

Definition at line 100 of file mpp_mod_oa.F90.

Referenced by get_peset(), get_unit(), increment_current_clock(), mpp_domains_mod_oa::mpp_broadcast_domain(), mpp_clock_begin(), mpp_clock_end(), mpp_clock_id(), mpp_clock_set_grain(), mpp_io_mod_oa::mpp_close(), mpp_domains_mod_oa::mpp_copy_domains2D(), mpp_io_mod_oa::mpp_copy_meta_axis(), mpp_io_mod_oa::mpp_copy_meta_field(), mpp_io_mod_oa::mpp_copy_meta_global(), mpp_declare_pelist(), mpp_domains_mod_oa::mpp_define_domains1D(), mpp_domains_mod_oa::mpp_define_domains2D(), mpp_error_basic(), mpp_error_noargs(), mpp_error_state(), mpp_io_mod_oa::mpp_flush(), mpp_io_mod_oa::mpp_get_axes(), mpp_io_mod_oa::mpp_get_axis_atts(), mpp_io_mod_oa::mpp_get_axis_data(), mpp_domains_mod_oa::mpp_get_compute_domains1D(), mpp_domains_mod_oa::mpp_get_compute_domains2D(), mpp_get_current_pelist(), mpp_io_mod_oa::mpp_get_field_atts(), mpp_io_mod_oa::mpp_get_fields(), mpp_io_mod_oa::mpp_get_global_atts(), mpp_io_mod_oa::mpp_get_info(), mpp_io_mod_oa::mpp_get_iospec(), mpp_domains_mod_oa::mpp_get_layout1D(), mpp_domains_mod_oa::mpp_get_layout2D(), mpp_domains_mod_oa::mpp_get_pelist1D(), mpp_domains_mod_oa::mpp_get_pelist2D(), mpp_io_mod_oa::mpp_get_recdimid(), mpp_io_mod_oa::mpp_get_times(), mpp_io_mod_oa::mpp_io_exit(), mpp_node(), mpp_npes(), mpp_io_mod_oa::mpp_nullify_axistype_array(), mpp_io_mod_oa::mpp_open(), mpp_pe(), mpp_io_mod_oa::mpp_read_meta(), mpp_root_pe(), mpp_set_current_pelist(), mpp_set_root_pe(), mpp_io_mod_oa::mpp_set_unit_range(), mpp_set_warn_level(), mpp_io_mod_oa::mpp_write_axis(), mpp_io_mod_oa::mpp_write_meta_axis(), mpp_io_mod_oa::mpp_write_meta_field(), mpp_io_mod_oa::mpp_write_meta_global(), mpp_io_mod_oa::mpp_write_meta_var(), mpp_io_mod_oa::netcdf_err(), mpp_io_mod_oa::read_record(), mpp_io_mod_oa::read_record_b(), stderr(), stdlog(), stdout(), mpp_io_mod_oa::write_attribute(), mpp_io_mod_oa::write_attribute_netcdf(), mpp_io_mod_oa::write_record(), mpp_io_mod_oa::write_record_b(), and mpp_io_mod_oa::write_record_c().

Definition at line 80 of file mpp_mod_oa.F90.

Referenced by stdin().

Definition at line 90 of file mpp_mod_oa.F90.

Referenced by mpp_init().

Definition at line 82 of file mpp_mod_oa.F90.

Referenced by mpp_init(), and stdlog().

logical,save mpp_mod_oa::logfile_defined = .false.

Definition at line 89 of file mpp_mod_oa.F90.

Referenced by mpp_init(), stderr(), and stdout().

integer,parameter mpp_mod_oa::MAX_BINS = 20

Definition at line 223 of file mpp_mod_oa.F90.

Referenced by dump_clock_summary(), and find_bin().

Definition at line 195 of file mpp_mod_oa.F90.

Referenced by mpp_clock_id().

Definition at line 195 of file mpp_mod_oa.F90.

Referenced by clock_init(), dump_clock_summary(), mpp_exit(), and sum_clock_data().

integer,parameter mpp_mod_oa::MAX_EVENTS = 40000

Definition at line 195 of file mpp_mod_oa.F90.

Referenced by increment_current_clock().

Definition at line 192 of file mpp_mod_oa.F90.

Referenced by increment_current_clock(), mpp_clock_end(), and mpp_init().

integer,parameter mpp_mod_oa::MAXPES = 2048

Definition at line 86 of file mpp_mod_oa.F90.

Definition at line 83 of file mpp_mod_oa.F90.

Definition at line 208 of file mpp_mod_oa.F90.

Definition at line 208 of file mpp_mod_oa.F90.

Referenced by mpp_init().

integer(LONG_KIND),parameter mpp_mod_oa::MPP_READY = -2

Definition at line 104 of file mpp_mod_oa.F90.

Referenced by mpp_init().

real(DOUBLE_KIND),dimension(:),allocatable mpp_mod_oa::mpp_stack

Definition at line 151 of file mpp_mod_oa.F90.

Referenced by mpp_set_stack_size().

Definition at line 153 of file mpp_mod_oa.F90.

Referenced by mpp_exit().

Definition at line 153 of file mpp_mod_oa.F90.

Referenced by mpp_set_stack_size().

integer(LONG_KIND),parameter mpp_mod_oa::MPP_WAIT = -1

Definition at line 104 of file mpp_mod_oa.F90.

Referenced by mpp_init(), and mpp_sync_self().

Definition at line 84 of file mpp_mod_oa.F90.

Referenced by mpp_init(), and mpp_node().

integer,parameter mpp_mod_oa::NOTE = 0

Definition at line 84 of file mpp_mod_oa.F90.

integer,parameter mpp_mod_oa::NULL_PE = -3
logical,save mpp_mod_oa::opened

Definition at line 80 of file mpp_mod_oa.F90.

Referenced by stdout().

Definition at line 84 of file mpp_mod_oa.F90.

type(communicator),dimension(0:peset_max) mpp_mod_oa::peset

Definition at line 166 of file mpp_mod_oa.F90.

Referenced by get_peset().

Definition at line 168 of file mpp_mod_oa.F90.

Referenced by get_peset().

Definition at line 192 of file mpp_mod_oa.F90.

Referenced by increment_current_clock(), mpp_sync(), and mpp_sync_self().

character(len=128) mpp_mod_oa::tagname

Definition at line 64 of file mpp_mod_oa.F90.

Definition at line 192 of file mpp_mod_oa.F90.

Definition at line 192 of file mpp_mod_oa.F90.

Referenced by clock_init(), and mpp_init().

Definition at line 194 of file mpp_mod_oa.F90.

Referenced by mpp_exit(), mpp_init(), and sum_clock_data().

Definition at line 192 of file mpp_mod_oa.F90.

Referenced by mpp_init().

logical mpp_mod_oa::verbose = .FALSE.

Definition at line 94 of file mpp_mod_oa.F90.

character(len=128) mpp_mod_oa::version

Definition at line 62 of file mpp_mod_oa.F90.

logical mpp_mod_oa::warnings_are_fatal = .FALSE.

Definition at line 101 of file mpp_mod_oa.F90.

Referenced by mpp_error_basic(), and mpp_set_warn_level().

Definition at line 169 of file mpp_mod_oa.F90.

Referenced by mpp_init(), mpp_set_current_pelist(), and mpp_sync().


Generated on 18 Mar 2011 for Oasis4 by  doxygen 1.6.1