Skip to content

Test test_MWSurfEM failed #228

@fcvdb

Description

@fcvdb

The test_MWSurfEM failed on Hercules compiled with gfortran in debug mode with the following message:

17: Test timeout computed to be: 10000000
17: 
17:  (INIT) UnitTest::Init:  
17: 
17:    --------------
17:    (SETUP) UnitTest::Setup:  test_MWSurfEM; CALLER: test_MWSurfEM
17: 
17: 
17:      Running CRTM for atms_npp sensor...
17:      (TEST) UnitTest::Assert: Test#1 PASSED. Test#1 PASSED.
17:      (TEST) UnitTest::Assert: Test#2 PASSED. Test#2 PASSED.
17:  Channels:           22
17: At line 234 of file /work2/noaa/jcsda/fvandenb/skylab/jedi_2025051220_request_cloud_fraction_in_geoval_gnu_hercules/jedi-bundle/crtm/src/SfcOptics/CRTM_MW_Land_SfcOptics.f90
17: Fortran runtime error: Index '2' of dimension 2 of array 'sfcoptics%emissivity' above upper bound of 1
17: 
17: Error termination. Backtrace:
17: #0  0x1457408f1066 in __crtm_mw_land_sfcoptics_MOD_compute_mw_land_sfcoptics
17:     at /work2/noaa/jcsda/fvandenb/skylab/jedi_2025051220_request_cloud_fraction_in_geoval_gnu_hercules/jedi-bundle/crtm/src/SfcOptics/CRTM_MW_Land_SfcOptics.f90:234
17: #1  0x14574094d839 in __crtm_sfcoptics_MOD_crtm_compute_sfcoptics

In routine crtm/test/mains/unit/Unit_Test/test_MWSurfEM.f90

Changing line 155:

   CALL CRTM_SfcOptics_Create(SfcOptics, &
                               1, & ! n_Angles
                               1)   ! n_Stokes

into:

   CALL CRTM_SfcOptics_Create(SfcOptics, &
                               1, & ! n_Angles
                               4)   ! n_Stokes

Fixes the problem.

Metadata

Metadata

Assignees

Labels

bugSomething is not working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions