Module write_IC
The function write_IC writes an initial condition template in IC.lua if the file does not yet exist.
It then also updates the file called translation.txt, which contains a translation of the linear array of variables into the specific ocean and atmosphere variable names.
Local Functions
write_IC (inprod, initvec, fn) | Write IC template if necessary, return true if it is written. |
Local Functions
- write_IC (inprod, initvec, fn)
-
Write IC template if necessary, return true if it is written.
Parameters:
- inprod Inner products table; contains info about variables.
- initvec Initial condition vector: OVERRIDES the other options, will be written to IC file, along with the option init_type="read".
- fn String which contains the filename; default: IC.lua
Returns:
-
Nothing. Its effect is to write the new IC file, if needed.