-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify model compilation after modifying a single .F file #369
Comments
when you say 'build it incrementally' what do you mean?
sed -e "s/^!.'.//" -e "s/^ !.'.*//" module_sf_mynn.F > module_sf_mynn.G /usr/bin/cpp -P -traditional -I/proj/usgs-share/users/jcwarner/help_cases/sandy_ww3_roms_test/WRF/inc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DDA_CORE=0 -DWRFPLUS=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORD SIZE=4 -DNONSTANDARD_SYSTEM_FUNC -DWRF_USE_CLM -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT -DDM_PARALLEL -DNETCDF -DLANDREAD_STUB=1 -DUSE_ALLOCATABLES -Dwrfmodel -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DBUILD_RRTMG_FAST=0 -DBUILD_RRTMK=0 -DBUILD_SBM_FAST=1 -DSHOW_ALL_VARS_USED=0 -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT -DSANDY -D'PROJECT_HEADER="/proj/usgs-share/users/jcwarner/help_cases/sandy_ww3_roms_test/Projects/Sandy/WW3/sandy.h"' -D'GLOBAL_DEFS="/proj/usgs-share/users/jcwarner/help_cases/sandy_ww3_roms_test//ROMS/Include/globaldefs.h"' -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DDA_CORE=0 -DWRFPLUS=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_FUNC -DWRF_USE_CLM -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT -DDM_PARALLEL -DNETCDF -DLANDREAD_STUB=1 -DUSE_ALLOCATABLES -Dwrfmodel -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DBUILD_RRTMG_FAST=0 -DBUILD_RRTMK=0 -DBUILD_SBM_FAST=1 -DSHOW_ALL_VARS_USED=0 -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT module_sf_mynn.G > module_sf_mynn.bb /proj/usgs-share/users/jcwarner/help_cases/sandy_ww3_roms_test/WRF/tools/standard.exe module_sf_mynn.bb | /usr/bin/cpp sf_myraditional -traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT > module_sf_mynn.f90 rm -f module_sf_mynn.G module_sf_mynn.bb and that creates the module_sf_mynn.f90 |
I want to build just that .F file. Thanks for your advice! I've used the second method you suggested. |
you are getting into the details of how a model compiles. these are not easy steps. |
Dear Professor,
I'm sorry to bother you. I modified a specific Fortran file (phys/module_sf_mynn.F) in WRF and want to recompile it incrementally without rebuilding the entire model. Is this possible?
I have already tried the following method: cd COAWST/WRF, ./compile -j 4 em_real, but the compilation failed.
The text was updated successfully, but these errors were encountered: