Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running downscale_options.txt given in the GARD documentation #83

Open
Neharika-B opened this issue Jan 25, 2024 · 6 comments

Comments

@Neharika-B
Copy link

.../GARD_install/GARD-1.0/test_data/filelists/erai_files_200x.txt: No such file or directory

@gutmann
Copy link
Member

gutmann commented Jan 25, 2024

Hi Neharika,
The downscale_options.txt file provided is only an example, and it needs to be modified to run the case you want to run. There is (a little) more information available on the readthedocs page.

Many options in this file can be left at their default values; however it is necessary to edit the names of the files to be used and the names of the variables in the netcdf files. The config file specifies the name of text files containing a list of netcdf filenames that will be read. One file list should be specified for each variable to be read, even if these variables are in the same files. File lists should just be text files with a single file listed per line; it is recommended to add quotations around the file names.

@Neharika-B
Copy link
Author

Hi,
Got it, will trying doing that. Thanks!

@Neharika-B
Copy link
Author

Hi,

When I am trying to run the downscale_options.txt file by editing the paths of my input files, I encounter this error I am attaching below.

`Using options file = /home/civil/phd/GARD_install/GARD-1.0/docs/downscale_options_trial.txt
At line 601 of file config/configuration.f90 (unit = 10, file = '/home/civil/phd/GARD_install/GARD-1.0/docs/downscale_options_trial.txt')
Fortran runtime error: End of file

Error termination. Backtrace:
#0 0x2b9859cbadee in next_record_r
at ../.././libgfortran/io/transfer.c:3627
#1 0x2b9859cbd80e in finalize_transfer
at ../.././libgfortran/io/transfer.c:4162
#2 0x418ef9 in ???
#3 0x48810c in ???
#4 0x4030bc in ???
#5 0x2b985a8b1554 in ???
#6 0x4030ec in ???
#7 0xffffffffffffffff in ???
`
I am using ERA-5 (training data), IMD (Observation data), and CMIP-6 (Prediction data). Precipitation is the only variable I am considering.
I have one text file for each i.e. training, observation and prediction data, inside which I have given the paths to the NetCDF file as shown below:
"/home/civil/phd/GARD_Trial1/adaptor.mars.internal-1709534228.6302118-13352-9-b3a224bc-acdc-4f92-b870-9291572c0447.nc"
"/home/civil/phd/GARD_Trial1/RF25_ind2017_rfp25.nc"
"/home/civil/phd/GARD_Trial1/pr_day_ACCESS-CM2_ssp126_r1i1p1f1_gn_20170101-20191231_v20191108.nc"
Please help me understand the issue.

@SKB-7
Copy link
Contributor

SKB-7 commented Mar 20, 2024

Hi,

Before the final installation of the model using makefile, you need to set the system memory access to "unlimited" and install the makefile. I think this might fix your issue.

It's mentioned in the readthedocs page.

#Common Errors
Segmentation Fault
GARD allocates memory to the stack. Users should set the "The maximum stack size" to "unlimited" before building/running GARD. ulimit -s unlimited

@msaharia
Copy link

Hi @gutmann - Neharika is my PhD student in IIT Delhi. Thank you for helping with the queries. We are hoping to get GARD installed and running soon.

@gutmann
Copy link
Member

gutmann commented Mar 20, 2024

Hi Manab, glad to see your group working with GARD!

Neharika,
You can recompile GARD with make clean; make MODE=debugslow to get more information, but my reading from

Using options file = /home/civil/phd/GARD_install/GARD-1.0/docs/downscale_options_trial.txt
At line 601 of file config/configuration.f90 (unit = 10, file = '/home/civil/phd/GARD_install/GARD-1.0/docs/downscale_options_trial.txt')
Fortran runtime error: End of file

is that there is an error in your options file. Probably a quotation is not properly closed or similar.

Line 601 is the namelist read statement

read(name_unit,nml=obs_parameters)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants