Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bug: obs_seq_to_netcdf for radiance obs is not built correctly when running quickbuild.cshΒ #335

@hkershaw-brown

Description

@hkershaw-brown

πŸ› πŸ› 🐳

Describe the bug

  1. List the steps someone needs to take to reproduce the bug.
cd DART/models/wrf
./quickbuild.csh
  1. What was the expected outcome?
    obs_seq_to_netcdf for radiance built
    obs_seq_to_netcdf built

  2. What actually happened?

radiance_obs_seq_to_netcdf gets built with the non-radiance obs_seq_to_netcdf code
Both of these are program obs_seq_to_netcdf so if you run quickbuild.csh, obs_seq_to_netcdf.o is built for the first program in the list, and radiance_obs/obs_seq_to_netcdf.f90 is never compiled.

Error Message

You can see this if you don't have the RTTOV libraries in your mkmf.template
./quickbuild.csh (runs successfully but should fail for radiance_obs_seq_to_netcdf)

csh mkmf_radiance_obs_to_netcdf  
make

gives

../../../assimilation_code/programs/obs_seq_to_netcdf/radiance_obs/obs_seq_to_netcdf.f90(35): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [OBS_DEF_RTTOV_MOD]
use obs_def_rttov_mod, only : get_channel
----^
../../../assimilation_code/programs/obs_seq_to_netcdf/radiance_obs/obs_seq_to_netcdf.f90(506): error #6404: This name does not have a type, and must have an explicit type.   [GET_CHANNEL]
         my_channel  = get_channel(flavor,obs_key)
-----------------------^
../../../assimilation_code/programs/obs_seq_to_netcdf/radiance_obs/obs_seq_to_netcdf.f90(35): error #6580: Name in only-list does not exist or is not accessible.   [GET_CHANNEL]
use obs_def_rttov_mod, only : get_channel
------------------------------^
compilation aborted for ../../../assimilation_code/programs/obs_seq_to_netcdf/radiance_obs/obs_seq_to_netcdf.f90 (code 1)
make: *** [obs_seq_to_netcdf.o] Error 1

with ../../../observations/forward_operators/obs_def_mod.f90 in preprocess_nml:

../../../observations/forward_operators/obs_def_mod.f90(3340): error #5102: Cannot open include file 'rttov_direct.interface'
include "rttov_direct.interface"
--------^
../../../observations/forward_operators/obs_def_mod.f90(3341): error #5102: Cannot open include file 'rttov_read_coefs.interface'
include "rttov_read_coefs.interface"

Which model(s) are you working with?

WRF

Version of DART

Which version of DART are you using?
v9.13.2
been in the repo since March 2020

Have you modified the DART code?

No

Build information

Please describe:

  1. mac
  2. intel
    but applies to any machine/build combo.

Metadata

Metadata

Labels

BugSomething isn't workingbuild-systemissues related to building dart

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions