DOI-USGS / COAWST

COAWST modeling system git repository
Other
105 stars 51 forks source link

Compile error in inlet_test coupled tutorial #171

Open hsuru010 opened 1 year ago

hsuru010 commented 1 year ago

I am trying to run INLET_TEST/Coupled = ROMS+SWAN same grid. When I try to build the coawst model, the below error appeared. ocean_coupler.f90(18): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [M_MCTWORLD] USE m_MCTWorld, ONLY : MCTWorld_init => init ----------^ ocean_coupler.f90(48): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [M_TRANSFER] USE m_Transfer, ONLY: MCT_send => send ----------^ ocean_coupler.f90(23): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [M_GLOBALSEGMAP] USE m_GlobalSegMap, ONLY : GlobalSegMap ----------^ ocean_coupler.f90(31): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [M_ATTRVECT] USE m_AttrVect, ONLY : AttrVect ----------^ ocean_coupler.f90(42): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [M_ROUTER] USE m_Router, ONLY : Router ----------^ ocean_coupler.f90(68): error #6457: This derived type name has not been declared. [GLOBALSEGMAP] TYPE(GlobalSegMap) :: GSMapROMS ! GloabalSegMap variables -------------^ ocean_coupler.f90(72): error #6457: This derived type name has not been declared. [ATTRVECT] TYPE(AttrVect) :: wav2ocn_AV ! AttrVect variables -------------^ ocean_coupler.f90(73): error #6457: This derived type name has not been declared. [ATTRVECT] TYPE(AttrVect) :: ocn2wav_AV -------------^ ocean_coupler.f90(77): error #6406: Conflicting attributes or multiple declaration of name. [ROUTER] TYPE(Router) :: ROMStoSWAN ! Router variables -------------^ ocean_coupler.f90(18): error #6581: Unresolved rename. [MCTWORLD_INIT] USE m_MCTWorld, ONLY : MCTWorld_init => init -----------------------------^ ocean_coupler.f90(19): error #6581: Unresolved rename. [MCTWORLD_CLEAN] USE m_MCTWorld, ONLY : MCTWorld_clean => clean -----------------------------^ ocean_coupler.f90(23): error #6580: Name in only-list does not exist. [GLOBALSEGMAP] USE m_GlobalSegMap, ONLY : GlobalSegMap ---------------------------------^ ocean_coupler.f90(24): error #6581: Unresolved rename. [GLOBALSEGMAP_INIT] USE m_GlobalSegMap, ONLY : GlobalSegMap_init => init ---------------------------------^ ocean_coupler.f90(25): error #6581: Unresolved rename. [GLOBALSEGMAP_LSIZE] USE m_GlobalSegMap, ONLY : GlobalSegMap_lsize => lsize ---------------------------------^ ocean_coupler.f90(26): error #6581: Unresolved rename. [GLOBALSEGMAP_CLEAN] USE m_GlobalSegMap, ONLY : GlobalSegMap_clean => clean ---------------------------------^ ocean_coupler.f90(27): error #6581: Unresolved rename. [GLOBALSEGMAP_ORDPNTS] USE m_GlobalSegMap, ONLY : GlobalSegMap_Ordpnts => OrderedPoints ---------------------------------^ ocean_coupler.f90(31): error #6580: Name in only-list does not exist. [ATTRVECT] USE m_AttrVect, ONLY : AttrVect -----------------------------^ ocean_coupler.f90(32): error #6581: Unresolved rename. [ATTRVECT_INIT] USE m_AttrVect, ONLY : AttrVect_init => init -----------------------------^ ocean_coupler.f90(33): error #6581: Unresolved rename. [ATTRVECT_ZERO] USE m_AttrVect, ONLY : AttrVect_zero => zero -----------------------------^ ocean_coupler.f90(34): error #6581: Unresolved rename. [ATTRVECT_LSIZE] USE m_AttrVect, ONLY : AttrVect_lsize => lsize -----------------------------^ ocean_coupler.f90(35): error #6581: Unresolved rename. [ATTRVECT_CLEAN] USE m_AttrVect, ONLY : AttrVect_clean => clean -----------------------------^ ocean_coupler.f90(36): error #6581: Unresolved rename. [ATTRVECT_COPY] USE m_AttrVect, ONLY : AttrVect_copy => copy -----------------------------^ ocean_coupler.f90(37): error #6581: Unresolved rename. [ATTRVECT_IMPORTRATTR] USE m_AttrVect, ONLY : AttrVect_importRAttr => importRAttr -----------------------------^ ocean_coupler.f90(38): error #6581: Unresolved rename. [ATTRVECT_EXPORTRATTR] USE m_AttrVect, ONLY : AttrVect_exportRAttr => exportRAttr -----------------------------^ ocean_coupler.f90(42): error #6580: Name in only-list does not exist. [ROUTER] USE m_Router, ONLY : Router ---------------------------^ ocean_coupler.f90(43): error #6581: Unresolved rename. [ROUTER_INIT] USE m_Router, ONLY : Router_init => init ---------------------------^ ocean_coupler.f90(44): error #6581: Unresolved rename. [ROUTER_CLEAN] USE m_Router, ONLY : Router_clean => clean ---------------------------^ ocean_coupler.f90(48): error #6581: Unresolved rename. [MCT_SEND] USE m_Transfer, ONLY: MCT_send => send ----------------------------^ ocean_coupler.f90(49): error #6581: Unresolved rename. [MCT_RECV] USE m_Transfer, ONLY: MCT_recv => recv ----------------------------^ ocean_coupler.f90(50): error #6581: Unresolved rename. [MCT_ISEND] USE m_Transfer, ONLY: MCT_isend => isend ----------------------------^ ocean_coupler.f90(1471): catastrophic error: Too many errors, exiting compilation aborted for ocean_coupler.f90 (code 1) make: *** [Build/ocean_coupler.o] Error 1 now I'm wondering how I should do.

compile.log this is my log file

jcwarner-usgs commented 1 year ago

what is in this directory /opt/intelsoft/mct/include

huyquangtranaus commented 2 weeks ago

Hi John,

I see this issue is still open and just I came across a similar error just now. Is there any idea how to sort it out? Thanks

`cd ./Build_roms; /apps/easybuild-2022/easybuild/software/Compiler/intel/2022.1.0/OpenMPI/4.1.4/bin/mpifort -c -fp-model precise -heap-arrays -ip -O3 -traceback -qopenmp -fpp -I/data/gpfs/projects/punim0489/COAWST.3.8/Lib/MCT/include mod_coupler.f90 cd ./Build_roms; /apps/easybuild-2022/easybuild/software/Compiler/intel/2022.1.0/OpenMPI/4.1.4/bin/mpifort -c -fp-model precise -heap-arrays -ip -O3 -traceback -qopenmp -fpp -I/data/gpfs/projects/punim0489/COAWST.3.8/Lib/MCT/include ocean_coupler.f90 ocean_coupler.f90(93): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MCT_COUPLER_PARAMS] USE mct_coupler_params ----------^ ocean_coupler.f90(362): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MCT_COUPLER_PARAMS] USE mct_coupler_params ----------^ ocean_coupler.f90(832): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MCT_COUPLER_PARAMS] USE mct_coupler_params ----------^ ocean_coupler.f90(1300): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MCT_COUPLER_PARAMS] USE mct_coupler_params ----------^ ocean_coupler.f90(1332): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MCT_COUPLER_PARAMS] USE mct_coupler_params ----------^ ocean_coupler.f90(163): error #6404: This name does not have a type, and must have an explicit type. [OCN_COMM_WORLD] CALL mpi_comm_rank (OCN_COMM_WORLD, MyRank, MyError) --------------------------^ ocean_coupler.f90(167): error #6404: This name does not have a type, and must have an explicit type. [NOCN_GRIDS] ALLOCATE(GlobalSegMap_G(Nocn_grids)) --------------------------------^ ocean_coupler.f90(167): error #6385: The highest data type rank permitted is INTEGER(KIND=8). [NOCN_GRIDS] ALLOCATE(GlobalSegMap_G(Nocn_grids)) --------------------------------^ ocean_coupler.f90(168): error #6385: The highest data type rank permitted is INTEGER(KIND=8). [NOCN_GRIDS] ALLOCATE(AttrVect_G(Nocn_grids)) ----------------------------^ ocean_coupler.f90(173): error #6404: This name does not have a type, and must have an explicit type. [OCNID] OCNid=ocnids(ng) ------^ ocean_coupler.f90(173): error #6404: This name does not have a type, and must have an explicit type. [OCNIDS] OCNid=ocnids(ng) ------------^ ocean_coupler.f90(175): error #6404: This name does not have a type, and must have an explicit type. [N_MCTMODELS] CALL MCTWorld_init (N_mctmodels, MPI_COMM_WORLD, & ----------------------------^ ocean_coupler.f90(175): error #6404: This name does not have a type, and must have an explicit type. [MPI_COMM_WORLD] CALL MCTWorld_init (N_mctmodels, MPI_COMM_WORLD, & -----------------------------------------^ ocean_coupler.f90(175): error #6285: There is no matching specific subroutine for this generic subroutine call. [MCTWORLD_INIT] CALL MCTWorld_init (N_mctmodels, MPI_COMM_WORLD, & -------------^ ocean_coupler.f90(178): error #6285: There is no matching specific subroutine for this generic subroutine call. [MCTWORLD_INIT] CALL MCTWorld_init (N_mctmodels, MPI_COMM_WORLD, & -------------^ ocean_coupler.f90(198): error #6285: There is no matching specific subroutine for this generic subroutine call. [GLOBALSEGMAP_INIT] CALL GlobalSegMap_init (GlobalSegMap_G(ng)%GSMapROMS, & -----------^ ocean_coupler.f90(299): error #6284: There is no matching specific function for this generic function reference. [GLOBALSEGMAP_LSIZE] Asize=GlobalSegMap_lsize(GlobalSegMap_G(ng)%GSMapROMS, & ------------^ ocean_coupler.f90(377): error #6385: The highest data type rank permitted is INTEGER(KIND=8). [NOCN_GRIDS] ALLOCATE(Router_W(Nocn_grids,Nwav_grids)) ------------------------^ ocean_coupler.f90(377): error #6404: This name does not have a type, and must have an explicit type. [NWAV_GRIDS] ALLOCATE(Router_W(Nocn_grids,Nwav_grids)) -----------------------------------^ ocean_coupler.f90(377): error #6385: The highest data type rank permitted is INTEGER(KIND=8). [NWAV_GRIDS] ALLOCATE(Router_W(Nocn_grids,Nwav_grids)) -----------------------------------^ ocean_coupler.f90(383): error #6404: This name does not have a type, and must have an explicit type. [WAVID] WAVid=wavids(iw) ----------^ ocean_coupler.f90(383): error #6404: This name does not have a type, and must have an explicit type. [WAVIDS] WAVid=wavids(iw) ----------------^ ocean_coupler.f90(384): error #6285: There is no matching specific subroutine for this generic subroutine call. [ROUTER_INIT] CALL Router_init (WAVid, GlobalSegMap_G(ng)%GSMapROMS, & ---------------^ ocean_coupler.f90(576): error #6284: There is no matching specific function for this generic function reference. [GLOBALSEGMAP_LSIZE] Asize=GlobalSegMap_lsize (GlobalSegMap_G(ng)%GSMapROMS, & ------------^ ocean_coupler.f90(964): error #6284: There is no matching specific function for this generic function reference. [GLOBALSEGMAP_LSIZE] Asize=GlobalSegMap_lsize (GlobalSegMap_G(ng)%GSMapROMS, & ------------^ ocean_coupler.f90(1310): error #6404: This name does not have a type, and must have an explicit type. [WAVIDS] deallocate ( wavids ) -------------------^ ocean_coupler.f90(1311): error #6404: This name does not have a type, and must have an explicit type. [OCNIDS] deallocate ( ocnids ) -------------------^ ocean_coupler.f90(1359): error #6404: This name does not have a type, and must have an explicit type. [NOCNFWAV] IF (MOD(iic(1)+offset,nOCNFWAV(1,1)).eq.0) THEN ------------------------------------^ ocean_coupler.f90(1359): error #6363: The intrinsic data types of the arguments must be the same. [MOD] IF (MOD(iic(1)+offset,nOCNFWAV(1,1)).eq.0) THEN ------------------------------------^ ocean_coupler.f90(1375): error #6404: This name does not have a type, and must have an explicit type. [NOCN2WAV] IF (MOD(iic(1)+offset,nOCN2WAV(1,1)).eq.0) THEN ------------------------------------^ /tmp/iforttzZpSN.i90(1388): catastrophic error: Too many errors, exiting compilation aborted for ocean_coupler.f90 (code 1) make: *** [Master/Module.mk:33: Build_roms/ocean_coupler.o] Error 1

jcwarner-usgs commented 2 weeks ago

i need to see the whole build out. what is in /data/gpfs/projects/punim0489/COAWST.3.8/Lib/MCT/include

huyquangtranaus commented 1 week ago

Here is the list of file in /data/gpfs/projects/punim0489/COAWST.3.8/Lib/MCT/include m_accumulator.mod m_accumulatorcomms.mod m_attrvect.mod m_attrvectcomms.mod m_attrvectreduce.mod m_chars.mod m_convertmaps.mod m_die.mod m_dropdead.mod m_exchangemaps.mod m_fccomms.mod m_filename.mod m_fileresolv.mod m_flow.mod m_generalgrid.mod m_generalgridcomms.mod m_globalmap.mod m_globalsegmap.mod m_globalsegmapcomms.mod m_globaltolocal.mod m_indexbin_char.mod m_indexbin_integer.mod m_indexbin_logical.mod m_inpak90.mod m_ioutil.mod m_list.mod m_mall.mod m_matattrvectmul.mod m_mctworld.mod m_merge.mod m_mergesorts.mod m_mpif.mod m_mpif90.mod m_mpout.mod m_navigator.mod m_permuter.mod m_rankmerge.mod m_realkinds.mod m_rearranger.mod m_router.mod m_sortingtools.mod m_sparsematrix.mod m_sparsematrixcomms.mod m_sparsematrixdecomp.mod m_sparsematrixplus.mod m_sparsematrixtomaps.mod m_spatialintegral.mod m_spatialintegralv.mod m_stdio.mod m_string.mod m_strtemplate.mod m_traceback.mod m_transfer.mod m_zeit.mod

jcwarner-usgs commented 1 week ago

ok. can you post the entire build.out? not just the last part with the error. because there may have been errors earlier in the build.

you can do scrip log.out ./build_coawst.sh exit and then post log.out

huyquangtranaus commented 1 week ago

Here is log.out.txt Thanks

jcwarner-usgs commented 1 week ago

"/bin/sh: line 14: cmake: command not found"

you need cmake to build the system now.