next up previous
Next: The Restart Mechanism Up: Exchange of coupling and Previous: prism_put_inquire


prism_put_restart

prism_put_restart (var_id, date, date_bounds, data_array, info, ierror)




Table 5.24: prism_put_restart arguments
\begin{table}
% latex2html id marker 1847
\begin{tabularx}{16cm}[t]{\vert l\ver...
...\texttt{Integer}&
returned error code\\
\hline
\end{tabularx}\end{table}




This function forces the writing of a field into a coupling restart file and can be used in the same fashion as prism_put , except that the prism_put_restart does not consider any coupling period from the SMIOC file and writes the data array into the restart file each time it is called. Note that a prism_put_restart can follow a prism_put .

This function should be used when a coupling restart file of a coupling field is needed (see section 5.7 for details on the restart mechanism) but not available. In that case, the user should run the source component beforehand to create the first coupling restart file of an experiment explicitly with a call to prism_put_restart . The returned info should be PRISM_Rst = 10 (the array is only written to a coupling restart file); in case the returned info is PRISM_Noaction = 0, an internal error occured. The meaning of the different ierror returned can be accessed using the routine prism_error (see section 5.9.3).

To use prism_put_restart , one should pay attention to the following details:

A concrete example on how to use the PSMILe prism_put_restart routine to create an OASIS4 coupling restart file can be found in directory oasis4/examples/toyoa4_restart (see the README therein). In practice, it is recommended, as done in toyoa4_restart to follow these rules:


next up previous
Next: The Restart Mechanism Up: Exchange of coupling and Previous: prism_put_inquire
Laure Coquart 2011-12-01