I'm trying to add some new variables to the
Is there a way to avoid this error? My understanding is that the restart I/O is tolerant to missing variables, so hopefully there's some way to tell it to be tolerant of missing dimensions as well.
Restart() subroutine in the CropType module:
Code:
call restartvar(ncid=ncid, flag=flag, varname='sdates_thisyr', xtype=ncd_double, &
dim1name='pft', dim2name='mxgrowseas', switchdim=.true., &
long_name='crop sowing dates for this patch this year', units='day of year', &
scale_by_thickness=.false., &
interpinic_flag='interp', readvar=readvar, data=this%sdates_thisyr)
mxgrowseas is a new dimension I've added to clm_varpar, so obviously it's not present in the existing restart files. I think that's why I'm getting the following error:Abort with message NetCDF: Invalid dimension ID or name in file /glade/u/home/samrabin/ctsm/libraries/parallelio/src/clib/pio_nc.c at line 812Is there a way to avoid this error? My understanding is that the restart I/O is tolerant to missing variables, so hopefully there's some way to tell it to be tolerant of missing dimensions as well.