next up previous
Next: The OASIS3 configuration file Up: Coupling algorithms - SEQ Previous: A mix of lag

Mixing sequential and parallel runs using prism_put_restart_proto

In the example illustrated on figure 4.8, the models run sequentially for the first run only and then run simultaneously. For the first run, the LAG and SEQ indices must be defined as in section 4.8.3. After the first run, the situation is similar to the one of section 4.8.1, and positive LAG must be defined for $F_1$ and $F_2$. As their lag is positive, their corresponding first prism_get_proto will automatically lead to reading $F_1$ and $F_2$ from coupling restart files. In this case, model A has to write $F_1$ to its restart file explicitly by calling prism_put_restart_proto (illustrated on the figure by an orange arrow) at the end of the first run; in fact, $F_1$ lag being then negative, such writing is not automatically done below the last prism_put_proto of the first run.

Figure 4.8: An example using prism_put_restart_proto
\includegraphics[scale=.6]{restart_example.eps}



Reinhard Budich 2004-12-22