Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

WRFDA compilation problem (Can't open module file 'da_module_domain.mod' )

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.


Dear WRF community,

I am writing for a WRFDA compilation problem for WRFDA V4.0. The wrfplus code is integrated in WRF folder for this version.

After successfully compiled wrfplus through ./configure wrfplus and ./compile wrfplus >& compile.out.wrfplus, I tried to compile 4dvar.

./configure 4dvar
./compile all_wrfvar >& compile.out.all_wrfvar_4dvar

It prompted out several errors. One example is listed as follows:

time gfortran -o mediation_wrfmain.o -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -fdefault-real-8 mediation_wrfmain.f90

USE da_module_domain
Fatal Error: Can't open module file 'da_module_domain.mod' for reading at (1): No such file or directory

These da_module_*.mod files are not existed in WRF folder. However, without suffix da_, module*_.mod files do exist in WRF/var/build/.

The configure and compile.out files are attached. Any indications are appreciated. Thanks.


  • configure.wrf
    20.2 KB · Views: 69
  • compile.out.wrfplus.txt
    839.1 KB · Views: 66
  • compile.out.all_wrfvar_4dvar.txt
    406.5 KB · Views: 70
Did you compile WRFDA in a separate directory. WRFDA and WRFPlus need to be compiled in the separate directory even though all source code is now included under the same tar file.
Thanks very much for the reply. I do not know how to compile wrfplus and wrfda for separate folders. Currently, they are all compiled within WRF directory (subfolders and files are listed as follows). Would you specify a little more how to do that?

arch chem compile doc dyn_nmm frame inc Makefile README run test
var backup_wrf clean configure dyn_em external hydro main phys Registry share tools wrftladj

BTW, I can only find user's guide for WRFDA V3.9, Is there any guide or reference specifically for WRFDA 4.0? Thanks.
You will need two separate directories. Both contain the same source code. One is configured and compiled for WRFPLUS building. The other is configured and compiled for WRFDA building. The steps you outlined in your original post are correct.

I hope this helps.