WRF 4DVAR installation problem

Introduction to the forum

WRF 4DVAR installation problem

Postby Polly_LO » Sun Sep 23, 2018 12:20 pm

Hi! I have some problems during compilation of WRF 4DVAR 4.0

I have successfully compile WRFV4.0, WPS4.0, WRFPLUS 4.0 and WRF 3dVar 4.0 (compiled without any errors), but I have error during WRF 4dvar 4.0 compilation process.

I use: Scientific Linux 7.2, gfortran 4.8, gcc 4.8, netcdf 4.6 and netcdf 4.4 fortran.
I tested all successfully compiled WRF module and they work correctly.
I compiled all modules for serial using.
Error during installation 4dvar looks like this:
compile.out
(it is the first Fatal error)
Code: Select all
...
COMPILING da_control.f90 for 4DVAR
/home/PalinaZ/Soft/WRF_4.0/WRFPLUS_3.9.1/WRFPLUSV3/tools/standard.exe module_configure.bb | /lib/cpp -P -nostdinc -traditional-cpp > module_configure.
COMPILING module_configure.F for 4DVAR
if fgrep -iq '!$OMP' da_control.f ; then \
          if [ -n "" ] ; then echo COMPILING da_control.f90 WITH OMP ; fi ; \
  time gfortran -o da_control.o -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4
        else \
          if [ -n "" ] ; then echo COMPILING da_control.f90 WITHOUT OMP ; fi ; \
  time gfortran -o da_control.o -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4
        fi
da_control.f:7.7:

   use da_module_driver_constants, only : max_domains, max_eta, max_moves, max_
       1
Fatal error:  Can't open module file 'da_module_driver_constants.mod' for reading at (1):  No such file or directory
...




Also I have some WARNINGS: like these
Makefile:90: warning: overriding commands for target `.F.o'

Can someone help me with this problem?
Or have any ideas, what I do wrong?
I need any kind of help)
Polly_LO
 
Posts: 22
Joined: Thu Aug 16, 2012 2:56 am

Re: WRF 4DVAR installation problem

Postby kwthomas » Mon Sep 24, 2018 3:01 pm

Hi Polly_LO...

Can you post your entire logfile? There may be another subtle complaint that is the cause.

The makefile warning overrides are harmless.
Kevin W. Thomas
Center for Analysis and Prediction of Storms
University of Oklahoma
kwthomas
 
Posts: 253
Joined: Thu Aug 07, 2008 6:53 pm

Re: WRF 4DVAR installation problem

Postby Polly_LO » Wed Sep 26, 2018 3:24 pm

kwthomas wrote:Hi Polly_LO...

Can you post your entire logfile? There may be another subtle complaint that is the cause.

The makefile warning overrides are harmless.


Hi!
Sure. It is the log file of my compilation.
But I have some words in russian in log file (like Ошибка - Error))))
Unfortunatly, I cant view my log in one message. This is the link:
https://yadi.sk/d/w0gJarNadMLwuw

With best regards!
Polly_LO
 
Posts: 22
Joined: Thu Aug 16, 2012 2:56 am

Re: WRF 4DVAR installation problem

Postby kwthomas » Thu Sep 27, 2018 4:53 pm

Hi...

Your log file looks clean. The first complaint is the error.

Look around and see if you can find a "da_module_driver_constants.mod" file. It may be in a directory
called "inc". This is in your WRF build directory tree.

If you find it, that means the problem is the software isn't looking in that directory for the file. I see some
"gfortran" complains that don't include anything and some that include a lot of files, but still doen't find it.

You might try adding its path to "INCLUDE_MODULES" in "configure.wrf". Model the line like the others
including spacing and the trailing space back-slash. "-I" goes in front of the path.

See that helps.
Kevin W. Thomas
Center for Analysis and Prediction of Storms
University of Oklahoma
kwthomas
 
Posts: 253
Joined: Thu Aug 07, 2008 6:53 pm

Re: WRF 4DVAR installation problem

Postby dcvz » Thu Sep 27, 2018 7:41 pm

This problem is probably due to the parallel make. The module hasn't finished compiling by the time another module tries to include it. At the beginning of your out file it says "setting parallel make -j 2" which is the WRF default. It usually works fine, but it depends on the compiler, number of processors on your machine and the load on the machine.

You can force a serial build by setting the "J" environment variable. In csh, setenv J “-j 1”.
dcvz
 
Posts: 176
Joined: Tue Apr 15, 2008 12:02 am

Re: WRF 4DVAR installation problem

Postby Polly_LO » Sat Sep 29, 2018 10:02 am

kwthomas wrote:Hi...

Your log file looks clean. The first complaint is the error.

Look around and see if you can find a "da_module_driver_constants.mod" file. It may be in a directory
called "inc". This is in your WRF build directory tree.

If you find it, that means the problem is the software isn't looking in that directory for the file. I see some
"gfortran" complains that don't include anything and some that include a lot of files, but still doen't find it.

You might try adding its path to "INCLUDE_MODULES" in "configure.wrf". Model the line like the others
including spacing and the trailing space back-slash. "-I" goes in front of the path.

See that helps.


Hi!
Thank you for reply!

I tried to find "da_module_driver_constants.mod" in ALL WRF (WRFPLUS, inc, etc.), but It was not found.
That is why I don't think that the link is the link is the reason. Maybe I'm wrong, but don't know clearly what path I should link.

P.S. Other *.mod in directory "phys", "wrftladj", etc
With best regards!
Polly_LO
 
Posts: 22
Joined: Thu Aug 16, 2012 2:56 am

Re: WRF 4DVAR installation problem

Postby Polly_LO » Sat Sep 29, 2018 10:33 am

dcvz wrote:This problem is probably due to the parallel make. The module hasn't finished compiling by the time another module tries to include it. At the beginning of your out file it says "setting parallel make -j 2" which is the WRF default. It usually works fine, but it depends on the compiler, number of processors on your machine and the load on the machine.

You can force a serial build by setting the "J" environment variable. In csh, setenv J “-j 1”.


Hi!
Thanks for the advice!
This looks like one of the possible solutions of my problem.

I tried to determine the number of processors as
>export MAKEFLAGS='j 1' (doesn't work)
>alias make="make -j 1" (doesn't work)
>export J='-j1' (doesn't work)

> J=1 (It works, but I'm not sure what is correct)
In compile.out I see the setting as:
"parallel option for make is -j, you entered: 1
setting parallel make -j 2"

It's right? This means that only one processor is used?
I use shell. How should I set the make parameter correct?

Link to compile.out log (9):
https://yadi.sk/d/yIKzJJtCFj34lg

With best regads!
Polly_LO
 
Posts: 22
Joined: Thu Aug 16, 2012 2:56 am

Re: WRF 4DVAR installation problem

Postby dcvz » Mon Oct 01, 2018 2:04 am

From the shell prompt, type

J="-j 1"
export J

The spaces and double quotes are important.
The output: "setting parallel make -j 2" means it's doing a parallel make using two processors. A parallel make will eventually work if you keep restarting the compile without doing a clean.
dcvz
 
Posts: 176
Joined: Tue Apr 15, 2008 12:02 am

Re: WRF 4DVAR installation problem

Postby Polly_LO » Wed Oct 03, 2018 5:37 am

dcvz wrote:From the shell prompt, type

J="-j 1"
export J

The spaces and double quotes are important.
The output: "setting parallel make -j 2" means it's doing a parallel make using two processors. A parallel make will eventually work if you keep restarting the compile without doing a clean.


I set "J" like in your example:
J="-j 1"
export J

After that I checked the compile.out file. It's doing a parallel make using one processor.
"setting serial make -j 1"

Unfortunately, I still have the some error:
compile_4dvar_new.out
https://yadi.sk/d/6tsETo5zPCrDAQ

What other possible causes of such errors?
Where should "da_module_driver_constants.mod" be?
With best regards!
Polly_LO
 
Posts: 22
Joined: Thu Aug 16, 2012 2:56 am

Re: WRF 4DVAR installation problem

Postby kwthomas » Wed Oct 03, 2018 5:21 pm

Hi...

WRF 4.0.1 was released yesterday. I'd grab it and retry your compiles.
Kevin W. Thomas
Center for Analysis and Prediction of Storms
University of Oklahoma
kwthomas
 
Posts: 253
Joined: Thu Aug 07, 2008 6:53 pm


Return to Welcome to the WRF User's Forum

Who is online

Users browsing this forum: No registered users and 2 guests

cron