source: (poseidon.ohist.f90) [ c_92_rp1 release ]POSEIDON_HISTORY_MODULE
Allocate space for the history object. Initialize the history accumulators to zero.
The T_Diagnostics object is allocated with CREATE_DIAGNOSTICS_COPY, which allocates space for each "wanted" object in the diagnostic that is to be copied, and sets the "wanted" property. This means that ohist will have a replica of the diag object contained in the ocean. It also means that the diagnostic must be created before creating the history.
If any diagnostics are not wanted as part of the history, they can have their "wanted" properties set to false after creation.
|TYPE (T_OCEAN) :: ocean||The ocean object for which this history is to be created|
|TYPE (T_POSEIDON_FORCING) :: forcing||The forcing object associated with this history object|
|TYPE (T_POSEIDON_HISTORY) :: ohist||The history object|
call CREATE_OHIST(ocean, forcing, ohist)
INTENT(IN) :: ocean,forcing