-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hello,
Thanks for putting together InfragA! I’m a new user and I ran into a slight issue when running the infraga-accel-sph-rngdep executable with mpirun.
I’ve put together a case where I use the following:
- example* met files
- example_lat.loc and example_lon.loc
- latlon-grid.dat
I then run the following:
mpirun -np 1 infraga-accel-sph-rngdep -prop example example_lat.loc example_lon.loc src_lat=40.0 src_lon=-102.5 azimuth=-90.0 write_rays=true topo_file=latlon-grid.dat
The output is
##############################################
#### Running infraga-accel-sph-rngdep ####
#### Propagation ####
##############################################
Interpolating atmosphere data in 'example*' and topography data in 'latlon-grid.dat'...
ERROR: Invalid terrain file (latlon-grid.dat)
Setting grid node at (35, -110) with profile example0.met
Setting grid node at (35, -106.67) with profile example1.met
Setting grid node at (35, -103.33) with profile example2.met
...
I opened /src/atmo/atmo_io.sph.rngdep.mpi.cpp and I noticed that lines 278-280 are triggered if file_in.is_open() returns false or null (I’m not sure)
I compared this to lines 271-274 of /src/atmo/atmo_io.3d.rngdep.mpi.cpp. Line 271 here opens the input file stream with file_in.open(topo_file). The call to file_in.open(topo_file) is not in atmo_io.sph.rngdep.mpi.cpp, so the file isn’t opened (I think).
Does InfraGA not support spherical range dependent topology?
Adding file_in.open(topo_file) to line 277 of /src/atmo/atmo_io.sph.rngdep.mpi.cpp and recompiling allows it to open the file, but results in the following:
WARNING!!! Specified atmosphere grid and topogrpahy grid have no overlap. Check grid definitions.
This new issue seems to be related to the geoac::lat_max and geoac::lon_min not being set.
Any ideas? Maybe I missed something in the documentation?
Thanks!