[MITgcm-support] (no subject)
Martin Losch
Martin.Losch at awi.de
Wed Apr 21 07:36:00 EDT 2021
Hi Jeremy,
1. it’s nearly impossible to tell what’s going on if you don’t provide the changed files (SIZE.h, data)
2. Did you acutally change Nx? You should never do that, but rather change sNx (and if necessary nSx, nPx)
T =mds.rdmds(’T’,Nt) should give you the correct field already, provided that Nt is a timestep number that you actually saved. Did you check the *.meta file? Sometimes it makes sense to remove all *.data *.meta files before rerunning, because the model overwrites them
Martin
> On 20. Apr 2021, at 14:29, Jeremy Miller <jeremysharonmiller at gmail.com> wrote:
>
> Dear MITgcm forum,
>
> Hope all are well. I have a couple of questions about the internal wave tutorial.
>
> 1. I am trying to change Nr, the number of cells in the z-direction. When changing it from 20 (the default) foe example to 22, at run-time I get the error:
>
> Fortran runtime error: Cannot match namelist object name -0.0440182
>
> Error termination. Backtrace:
> #0 0x7f0d178d1d3a
> #1 0x7f0d178d2849
>
> etc.
>
> I changed Nr in input/data in the relevant lines:
>
> Line 8: Tref = 0.0484200, ..... -0.0484200 (20 values), -> Tref = 0.0486517,..., -0.0486517, (22 values)
> Line 14: sRef= 20*35. -> sRef= 22*35.,
> Line 70: delZ=22*10., -> delZ=22*9.,
>
> and I changed the relevant lines in code/SIZE.h and code/SIZE.h_mpi:
>
> Line 55: & Nr = 20) -> & Nr = 22)
>
> 2. Changing Nx (the number of slices in the x direction) from the default 60 to, say 100, in data and SIZE.h as above, the code runs, but when trying to read the temperature data back in from the file 'T.0000000100.002.001.meta', then resize the array in python with the snippet (with Nz=20, Nx=100)
>
> T = mds.rdmds('T',Nt);
> T_vals = T.reshape(Nz,Nx)
>
> I get the error
>
> ValueError: cannot reshape array of size 1200 into shape (20,100)
>
> i.e. the results data has not been reshaped according to the new Nx=100.
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1665 bytes
Desc: not available
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20210421/223cdae5/attachment.p7s>
More information about the MITgcm-support
mailing list