Hi. I've been building WRF using parallel make (like `make -j 10` and `make -j 20`). Looks like some source files use modules from other source files but the dependences are not setup correctly in the makefile. This causes intermittent build failures due to missing module files. Like in `phys` I might get `Unable to open MODULE file module_mp_thompson.mod (module_madwrf.f90: 243)` because `module_mp_thompson` and `module_madwrf` are being compiled simultaneously (WRF/phys/Makefile at master · wrf-model/WRF).
I see that the default is `-j 2` in the `compile` script, but what's the best practice for parallel making of the various subdirectories?
Thanks!
I see that the default is `-j 2` in the `compile` script, but what's the best practice for parallel making of the various subdirectories?
Thanks!