cime_init Subroutine

public subroutine cime_init()

Component Initialization Note that within each component initialization, the relevant x_present flag part of CIMEInit can be modified By default, all these flags are set to true The atm can reset the lnd_present, ice_present and ocn_present flags based on aqua_planet, ideal_phys and adiabatic modes The stub components will reset the present flags to false, all other components will set them to true for the purposes of symmetry


Determine coupling interactions based on present and prognostic flags

Write component and coupler setup information

Present and prognostic consistency checks

Samegrid checks

Check instances of prognostic components

Initialize attribute vectors for prep_c2C_init_avs routines and fractions Initialize mapping between components


Update aream in domains where appropriate

Check domains This must be done after the mappers are initialized since checking is done on each processor and not with a global gather


Initialize area corrections based on aream (read in map_init) and area Area correct component initialization output fields Map initial component AVs from component to coupler pes


global sum diagnostics for IC data

Initialize fractions

Initialize prep_aoflux_mod module variables

Initialize atm/ocn flux component and compute ocean albedos

ATM PREP for recalculation of initial solar Note that ocean albedos are ALWAYS CALCULATED on the ocean grid If aoflux_grid = 'ocn' , xao_ox is input for atm/ocn fluxes and xao_ax is output If aoflux_grid = 'atm' , xao_ax is input for atm/ocn fluxes and xao_ox is not used If aoflux_grid = 'exch', xao_ax is input for atm/ocn /fluxes and xao_ox is not used Merge atmosphere input state and run atmospheric radiation


Second phase of atmosphere component initialization Recalculate solar based on input albedo's from surface components. Data or dead atmosphere may just return on this phase.


Get time manager's index for driver

Read driver restart file, overwrite anything previously sent or computed

Map initial r2x_rx and g2x_gx to _ox, _ix and _lx

Clear all resume signals

Write histinit output file

Arguments

None