Hello Everyone,
Thank you all for your suggestions. I tried installing the model again and found that the error came about due to line 922 of the mod_savefile.F90  in the Main directory. I changed the line from :  
 
                          "ncstatus = nf90_put_att(ncid,nf90_global,'idatex',toint10(idate))"  to
                          "ncstatus = nf90_put_att(ncid,nf90_global,'idatex',int(toint10(idate),ik4))"

and then followed the standard installation process i.e bootstrap > configure > make and the make install. After this, the restart files were successfully made. I hope this helps anyone who runs into a similar issue.

On Fri, Feb 17, 2023 at 3:42 AM Sarin TS <a21es09007@iitbbs.ac.in> wrote:
Dear RegCM community,

I have installed the RegCM 4.7.1 model for my work recently. I configured the model with zlib-1.2.13, hdf5-1.14.0, NetCDF-c-4.9.1, Netcdf-fortran-4.6.0 and NetCDF-cxx-4.3.1. I am compiling the CLM45 version with mpirun.

As suggested in the User guide, I have obtained the model outputs for the small test runs (where I turned off the option to get restart files). However, my work requires me to run a 2-year long simulation with chemistry options. This generates enormous single files due to which I have to split my run into smaller runs and use the restart option. But the runs fail with the error:

"Cannot save idatex"
"NetCDF: Not a valid  data type or FillValue mismatch"

I have attached the error message below for your reference. I have tried many things from mixing and matching the different netcdf versions to hoping for a change, but the error persists despite all the effort. Any kind of help is greatly appreciated and suggestions of all forms are welcome. I am really at my wit's end here.


--
With warm regards
Sarin TS
Doctoral student 
Aerosol, Air Quality and Climate Lab
School of  Earth, Oceans, and Climate Sciences (SEOCS)
Indian Institute of Technology, Bhubaneswar
Alternate Email ID: sarin.ts@students.iiserpune.ac.in



Disclaimer: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.