[MITgcm-devel] changes in pkg/layers
Jean-Michel Campin
jmc at ocean.mit.edu
Tue May 12 11:10:32 EDT 2015
Hi,
I would like to make little changes in pkg/layers:
1) substract 1000 to "prho" = the potential density
that pkg/layers uses as tracer field.
motivation:
a) when I output "prho" using 32-bit precision file,
the -1000 shift would save at least 2 digits of precision.
b) this is a common practise in oceanography to use rho-1000
variable for potential density.
c) since I've just added (yesterday) a diagnostics for this
prho field (+ bring back the snap-shot output of prho that
has been missing for long time when density-layers is not in
first position in the "layers_num" list), this could be a good
time to make this modification.
2) add few check and stop regarding parameter settings, especially:
a) checking for inconsistency between "layers_name" and layers_num
value.
b) if mixing old setting (LAYER_nb, layers_kref, layers_G, useBOLUS)
and new settings (layers_num, layers_krho, layers_bounds, layers_bolus).
3) move layer diagnostics array out of commom blocks and define them
as local variables in layers_calc.F
(outside common blocks, the missing re-init of layer non-weighted velocity
and layer probability - fixed yesterday - would have be caught by some
"-devel" compiler option).
Comments ? suggestions ?
Cheers,
Jean-Michel
More information about the MITgcm-devel
mailing list