If I remember correctly, the oldest strategy was to load his by default, then switched to grid, and now we try to be compatible. Here are a few questions regarding these few lines:
first line: shouldn't it be t1/{}grid.nc'.format(prefix)? Otherwise Run.__init__most certainly misses the grid file and switched to old behavior, i.e. load his(and only his) by default. I made the corresponding change in the branch "vmodes".
Would that be compatible to use _nc_default only if open_nc is empty?
If I remember correctly, the oldest strategy was to load
his
by default, then switched togrid
, and now we try to be compatible. Here are a few questions regarding these few lines:https://github.com/slgentil/croco/blob/a9e520822fd5b9bd9df9c6f21eec0064ee3934e9/crocosi/postp.py#L46-L51
t1/{}grid.nc'.format(prefix)
? OtherwiseRun.__init__
most certainly misses the grid file and switched to old behavior, i.e. loadhis
(and onlyhis
) by default. I made the corresponding change in the branch "vmodes"._nc_default
only ifopen_nc
is empty?