(RESOLVED) Compiling ideal and real in the same directory

All topics related to compiling WRF, including environment set-up, and library installation
Post Reply
Jayanti pal
Posts: 64
Joined: Mon Nov 04, 2019 8:29 am

(RESOLVED) Compiling ideal and real in the same directory

Post by Jayanti pal » Sat Jan 30, 2021 9:53 am

Can I compile wrf in ideal and real mode together?
if i can then how?

kwerner
Posts: 2287
Joined: Wed Feb 14, 2018 9:21 pm

Re: ideal and real compilation

Post by kwerner » Tue Feb 02, 2021 12:05 am

You cannot compile the two at the same time, as one creates and uses the real executable (real.exe) and the other uses the ideal executable (ideal.exe) for initialization. However, it is possible to compile them in the same WRF package as long as you are using the same configuration (e.g., serial/no-nest or dmpar/basic-nest) if that's what you mean.

1) Configure and compile for the em_real case.
2) Executables will be created in the main directory, but linked to test/em_real.
3) Move the executables real.exe, tc.exe, ndown.exe and wrf.exe to the test/em_real directory.
4) Go back to the main WRF/ directory and compile for an idealized case.
5) Again, executables are created in the main directory, and are linked to the test/em_* case you are compiling.
6) You can then move the executables ideal.exe and wrf.exe to the test/em_* directory for you ideal case.

You just need to be careful that you are compiling using the same configuration. If you want to run the em_real test case with parallel options (e.g., dmpar/smpar), you will only be able to compile one of the 3d ideal test cases in this same WRF directory. All of the 2d cases (marked by the "2d" in the name), and the scm_xy case (which is 1d), must be compiled and run serially, with the 'no nest' option during configuration. If you are choosing one of these ideal cases, you'll need to compile em_real serially, with no nests also. Otherwise, it's probably easier to simply compile them in two different directories.
NCAR/MMM

Jayanti pal
Posts: 64
Joined: Mon Nov 04, 2019 8:29 am

Re: ideal and real compilation

Post by Jayanti pal » Wed Feb 03, 2021 7:45 pm

Thank you for your reply. It is really very helpful

Post Reply

Return to “WRF Compiling/Installation”