DOI-USGS / DOI-USGS/COAWST

Compilation error with SWAN model only.

Open
#83 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
Fortran
Stars
156
Forks
75
PR merge metrics
No merged PRs in 30d

Description

Hi all,

I am trying to compile coawst using SWAN only. But I get the error:
get_numswan_grids.f90(12): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MOD_COUPLER_KINDS]
USE mod_coupler_kinds

Apparently the mct_coupler_params.mod and mod_coupler_kinds.mod are missing in the SCRATCH_DIR. These two module files are compiled when make mct_params.

In my bashfile, I set cleanwrf, cleanwrfhydro and cleanww3 to 0 since I am trying to compile swan only.

I have these CPP options in my header file:
#undef ROMS_MODEL
#undef NESTING
#undef WRF_MODEL
#define SWAN_MODEL
#undef MCT_LIB
#undef MCT_INTERP_OC2AT
#undef MCT_INTERP_WV2AT
#undef MCT_INTERP_OC2WV

Is there a way to not invoke the mct_params? Or should I just do make mct_params regardless of my options?

Thanks

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the SWAN-only build from the bashfile and header options in the issue, then inspect get_numswan_grids.f90 and the make mct_params entry point. Check how mct_coupler_params.mod and mod_coupler_kinds.mod are expected to reach SCRATCH_DIR. Done means the SWAN-only configuration compiles successfully with the documented build steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
fortran
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.