GEOS-ESM / AeroApps

Aerosol applications for supporting mission development, model analysis, and atmospheric radiative transfer
Apache License 2.0
5 stars 1 forks source link

Try to fix odsqc #63

Closed mathomp4 closed 1 month ago

mathomp4 commented 1 month ago

Both @patricia-nasa and @seungheelee811 have had issues running odsqc.x on calculon and discover respectively. They get the error:

Attempting to use an MPI routine before initializing MPICH

Usually this message (which both I and @bena-nasa have seen before) means you are trying to run MPI code without running MPI_Init.

This PR tries to bring over code from the latest GMAO_Shared and GAAS_App to see if it can fix it. My memory is that this was encountered long ago in the GEOSadas and these were the fixes.

mathomp4 commented 1 month ago

Update: I can duplicate the develop behavior/error on calculon, but not on discover. Hmm. Still, this seems to fix the issue on calculon for me.

mathomp4 commented 1 month ago

More updates: I can get it to run, but it doesn't actually work:

(145) $ mpirun -np 1 ~/AeroApps/install-Debug/bin/odsqc.x nnr_011.SNPP04_L2a.db_land.20190831_2100z.ods                                                        [gs6101-calculon:~/TestAeroApps 8:34am]

 Input files:            1

  o nnr_011.SNPP04_L2a.db_land.20190831_2100z.ods

 Output filename prefix: odsqc
 Working on ... nnr_011.SNPP04_L2a.db_land.20190831_2100z.ods    20190831
           0
    [] Read nobs, date, time:            0    20190831           0         128
--------------------------------------------------
Entering SQC: version 2.1.0 (25Mar2010)
              with        0 observations
--------------------------------------------------
SQC: no observations, nothing to do.

  ODS_NCCreate: not a valid ods type:
odsqc: could not write odsqc.nnr_011.SNPP04_L2a.db_land.20190831_2100z.ods
000.die.: from odsqc()
Abort(2) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 2) - process 0