schism-dev / schism

Semi-implicit Cross-scale Hydroscience Integrated System Model (SCHISM)
http://ccrm.vims.edu/schismweb/
Apache License 2.0
87 stars 86 forks source link

Compile GOTM 3.2.5 #127

Closed hb-9797 closed 6 months ago

hb-9797 commented 7 months ago

Hi all: I followed the "readme(inside GOTM/)" to install the GOTM library. When I go into the "src" folder and use "make realclean "and "make", I get the following error already: "/data/hb/schism-5.11.0/src/GOTM3.2.5/compilers/compiler.: No such file or directory make: *** No rule to make target `/data/hb/schism-5.11.0/src/GOTM3.2.5/compilers/compiler.'. Stop", no relevant files found. I was able to run schism successfully without using the GOTM module before. Here are the environment variables as well as the error screenshot: image image

josephzhang8 commented 7 months ago

For GOTM, please use cmake.

-Joseph

Joseph Zhang

Office: (804) 684 7466

Web: schism.wiki


From: Bo Huang @.> Sent: Friday, February 23, 2024 11:17 AM To: schism-dev/schism @.> Cc: Subscribed @.***> Subject: [schism-dev/schism] Compile GOTM 3.2.5 (Issue #127)

[EXTERNAL to VIMS received message]

Hi all: I followed the "readme(inside GOTM/)" to install the GOTM library. When I go into the "src" folder and use "make realclean "and "make", I get the following error already: "/data/hb/schism-5.11.0/src/GOTM3.2.5/compilers/compiler.: No such file or directory make: *** No rule to make target `/data/hb/schism-5.11.0/src/GOTM3.2.5/compilers/compiler.'. Stop", no relevant files found. I was able to run schism successfully without using the GOTM module before. Here are the environment variables as well as the error screenshot: image.png (view on web)https://github.com/schism-dev/schism/assets/129708252/34164927-55f0-4b44-bc9d-6e6d22e1d628 image.png (view on web)https://github.com/schism-dev/schism/assets/129708252/56cd9698-9c72-438e-9827-e2a9cac19a4d

— Reply to this email directly, view it on GitHubhttps://github.com/schism-dev/schism/issues/127, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFBKNZ656HC7QBFEBN2DXBDYVC6JDAVCNFSM6AAAAABDW7L62KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2TCNBQGAZTONA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

hb-9797 commented 7 months ago

For GOTM, please use cmake. -Joseph Joseph Zhang Office: (804) 684 7466 Web: schism.wiki ____ From: Bo Huang @.> Sent: Friday, February 23, 2024 11:17 AM To: schism-dev/schism @.> Cc: Subscribed @.> Subject: [schism-dev/schism] Compile GOTM 3.2.5 (Issue #127) [EXTERNAL to VIMS received message] Hi all: I followed the "readme(inside GOTM/)" to install the GOTM library. When I go into the "src" folder and use "make realclean "and "make", I get the following error already: "/data/hb/schism-5.11.0/src/GOTM3.2.5/compilers/compiler.: No such file or directory make: No rule to make target `/data/hb/schism-5.11.0/src/GOTM3.2.5/compilers/compiler.'. Stop", no relevant files found. I was able to run schism successfully without using the GOTM module before. Here are the environment variables as well as the error screenshot: image.png (view on web)https://github.com/schism-dev/schism/assets/129708252/34164927-55f0-4b44-bc9d-6e6d22e1d628 image.png (view on web)https://github.com/schism-dev/schism/assets/129708252/56cd9698-9c72-438e-9827-e2a9cac19a4d — Reply to this email directly, view it on GitHub<#127>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFBKNZ656HC7QBFEBN2DXBDYVC6JDAVCNFSM6AAAAABDW7L62KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2TCNBQGAZTONA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Thank you for your reply, I noticed that in the "readme(inside GOTM/)", it mentions that for the SELFE model, you need to "Make library inside src/turbulence/Makefile...", and with a loop code. Does SCHISM still need this step, and if so, is it enough to add it to "src/turbulence/Makefile"? Thanks a lot! Here's part of the readme:

_To use gotm inside ELCIRC or SELFE, the following message is from K. Bolding. Make library inside src/turbulence/Makefile.

Hello

Here comes - most of - the interfacing code using gotm in a 3D model.

This is only from the time-loop. In addition initialisation must be done:

do j=jjmin,jjmax do i=iimin,iimax

     if (az(i,j) .eq. 1 ) then

        u_taus = sqrt(taus(i,j)) 
        u_taub = sqrt(taub(i,j))

        h = hn(i,j,:)
        SS1d = SS(i,j,:)
        NN1d = NN(i,j,:)

        tke1d=tke(i,j,:)
        eps1d=eps(i,j,:)
        L1d=cde*tke1d**1.5/eps1d
        num1d=num(i,j,:)
        nuh1d=nuh(i,j,:)

        z0s = 0.1
        z0b=0.5*(max(zub(i-1,j),zub(i,j))+max(zvb(i,j-1),zvb(i,j)))
        if (z0s .gt. D(i,j)/10.) z0s=D(i,j)/10.

        call do_turbulence(kmax,dt,D(i,j),u_taus,u_taub,z0s,z0b,h, &
                           NN1d,SS1d,xP)

        tke(i,j,:) = tke1d
        eps(i,j,:) = eps1d
        num(i,j,:) = num1d + avmback
        nuh(i,j,:) = nuh1d + avhback
     end if

  end do

end do_