pmc_output_state Namespace Reference

Save and restore the exact internal state (a checkpoint). More...


Functions

subroutine inout_write_state (state_prefix, bin_grid, aero_data, aero_state, gas_data, gas_state, env_state, index, time, del_t, i_loop)
 Write the current state.
subroutine inout_read_state (state_name, bin_grid, aero_data, aero_state, gas_data, gas_state, env_state, time, index, del_t, i_loop)
 Read the current state.


Detailed Description

Save and restore the exact internal state (a checkpoint).

The state file will contain enough data to restart the simulation at the point it was written.

Because it contains the full state of every particle, this is also the best way to gain complete access to all statistics of the simulation.


Function Documentation

subroutine pmc_output_state::inout_read_state ( character(len=*),intent(in)  state_name,
type(bin_grid_t),intent(out)  bin_grid,
type(aero_data_t),intent(out)  aero_data,
type(aero_state_t),intent(out)  aero_state,
type(gas_data_t),intent(out)  gas_data,
type(gas_state_t),intent(out)  gas_state,
type(env_state_t),intent(out)  env_state,
real*8,intent(out)  time,
integer,intent(out)  index,
real*8,intent(out)  del_t,
integer,intent(out)  i_loop 
)

Read the current state.

Parameters:
state_name  Name of state file.
bin_grid  Bin grid.
aero_data  Aerosol data.
aero_state  Aerosol state.
gas_data  Gas data.
gas_state  Gas state.
env_state  Environment state.
time  Current time (s).
index  Current index.
del_t  Current time-step (s).
i_loop  Current loop number.

subroutine pmc_output_state::inout_write_state ( character(len=*),intent(in)  state_prefix,
type(bin_grid_t),intent(in)  bin_grid,
type(aero_data_t),intent(in)  aero_data,
type(aero_state_t),intent(in)  aero_state,
type(gas_data_t),intent(in)  gas_data,
type(gas_state_t),intent(in)  gas_state,
type(env_state_t),intent(in)  env_state,
integer,intent(in)  index,
real*8,intent(in)  time,
real*8,intent(in)  del_t,
integer,intent(in)  i_loop 
)

Write the current state.

Parameters:
state_prefix  Prefix of state file.
bin_grid  Bin grid.
aero_data  Aerosol data.
aero_state  Aerosol state.
gas_data  Gas data.
gas_state  Gas state.
env_state  Environment state.
index  Filename index.
time  Current time (s).
del_t  Current timestep (s).
i_loop  Current loop number.


Generated on Sun Feb 17 10:31:06 2008 for PartMC by  doxygen 1.5.4