[ecco-support] [EXTERNAL] Re: ecco-support Digest, Vol 85, Issue 4

Wang, Ou (US 329B) ou.wang at jpl.nasa.gov
Tue Apr 25 23:31:01 EDT 2023


Hello Justin,

The f90makedepend pull request by Ivana Escobar was closed without being merged to the main branch of MITgcm. The reason was that there is no need to modify f90makedepend if one first removes all carriage returns from the files before passing them to f90makedepend.

As Ivana commented, some warning, but not error, message may still appear:
WARNING: f90mkdepend: for netcdf.h no source file found for this
This is because some multi-line comments in the netCDF header file has the phrase “use this …” and f90makedepend assumes the word “this” is a module name.

If you want to get rid of this warning message, attached please find a modified f90mkdepend that would probably work.

Best,
Ou Wang

From: ecco-support <ecco-support-bounces at mit.edu> on behalf of Justin Campbell <campbelljustin989 at gmail.com>
Date: Monday, April 24, 2023 at 6:03 PM
To: ecco-support at mit.edu <ecco-support at mit.edu>
Subject: [EXTERNAL] Re: [ecco-support] ecco-support Digest, Vol 85, Issue 4
Hello Ou,

Thank you for the feedback and for your quick response. I was able to successfully reproduce all steps needed to build and run the verification experiment by following your recommendation of not specifying an opt file and instead, letting genmake2 recursively iterate through parent directories to find the location of the compatible fortran compiler and dependencies. However, I would like to be able to use opt files specific to a local computing cluster at some point as I work on a docker project where I will be tailoring containers to specific host machines and their architecture. I have begun communicating with Ivana Escobar who submitted a pull request to merge an update that supposedly addresses a very similar error message with carriage return parsing in f90mkdepend shown in the attached link. However, I'm unsure as to whether this or a similar update was ever adopted in the main branch of MITgcm? Do I need to revert to a certain checkpoint of MITgcm to make use of this change?


Thanks again,


f90mkdepend pull request<https://urldefense.us/v3/__https:/github.com/MITgcm/MITgcm/pull/646__;!!PvBDto6Hs4WbVuu7!MZNUlomQ7Rd8q86kFXtnRzvBwinQeDABIAyCjGtRPf_kvEX2gyrzhSoPamHd2HD2wqVH9arCrRDTDnBK9NCj5HOctC00t9Q$>

Justin Campbell

On Sat, Apr 22, 2023 at 11:00 AM <ecco-support-request at mit.edu<mailto:ecco-support-request at mit.edu>> wrote:
Send ecco-support mailing list submissions to
        ecco-support at mit.edu<mailto:ecco-support at mit.edu>

To subscribe or unsubscribe via the World Wide Web, visit
        https://mailman.mit.edu/mailman/listinfo/ecco-support<https://urldefense.us/v3/__https:/mailman.mit.edu/mailman/listinfo/ecco-support__;!!PvBDto6Hs4WbVuu7!MZNUlomQ7Rd8q86kFXtnRzvBwinQeDABIAyCjGtRPf_kvEX2gyrzhSoPamHd2HD2wqVH9arCrRDTDnBK9NCj5HOckHz2nQY$>
or, via email, send a message with subject or body 'help' to
        ecco-support-request at mit.edu<mailto:ecco-support-request at mit.edu>

You can reach the person managing the list at
        ecco-support-owner at mit.edu<mailto:ecco-support-owner at mit.edu>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ecco-support digest..."


Today's Topics:

   1. Re: [EXTERNAL] Makefile unable to generate dependencies for
      Fortran90 File (Wang, Ou (US 329B))


----------------------------------------------------------------------

Message: 1
Date: Sat, 22 Apr 2023 03:06:06 +0000
From: "Wang, Ou (US 329B)" <ou.wang at jpl.nasa.gov<mailto:ou.wang at jpl.nasa.gov>>
To: "ECCO support list, wider membership" <ecco-support at mit.edu<mailto:ecco-support at mit.edu>>
Subject: Re: [ecco-support] [EXTERNAL] Makefile unable to generate
        dependencies for Fortran90 File
Message-ID:
        <BLAPR09MB6179AA55800C332905DD1FCBC4619 at BLAPR09MB6179.namprd09.prod.outlook.com<mailto:BLAPR09MB6179AA55800C332905DD1FCBC4619 at BLAPR09MB6179.namprd09.prod.outlook.com>>

Content-Type: text/plain; charset="windows-1252"

Hello,

Did you use the following commands?
cd verification/exp2/build
../../../tools/genmake2 -mods ../code -optfile ?/PATH/TO/OPTFILE?
(You can run the genmake2 command without specifying the opt file: ../../../tools/genmake2 -mods ../code)
make depend

If so, please make sure the build directory is empty before issuing the ?genmake2? command.

If  you still get the same error messages, I suggest posting your question to mitgcm-support at mitgcm.org<mailto:mitgcm-support at mitgcm.org><mailto:mitgcm-support at mitgcm.org<mailto:mitgcm-support at mitgcm.org>>. The question is about a MITgcm verification experiment; you may get more answers from the MITgcm support list.

Best,
Ou Wang


From: ecco-support <ecco-support-bounces at mit.edu<mailto:ecco-support-bounces at mit.edu>> on behalf of Justin Campbell <campbelljustin989 at gmail.com<mailto:campbelljustin989 at gmail.com>>
Date: Friday, April 21, 2023 at 4:58 PM
To: ecco-support at mit.edu<mailto:ecco-support at mit.edu> <ecco-support at mit.edu<mailto:ecco-support at mit.edu>>
Subject: [EXTERNAL] [ecco-support] Makefile unable to generate dependencies for Fortran90 File
Hello all,


I am currently attempting to reproduce the tutorial steps in the readthedocs for building the verification/exp2 experiment, and when I run 'make depend' to create model dependencies I receive error messages suggesting that 'f90mkdepend' could not locate the necessary source file(s) for module 'this'. It looks like it was not able to append the 'f90mkdepend' dependency to the makefile. This is shown in the attachment below. Any recommendations on how to go about debugging this?


Best Regards,



Justin Campbell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20230422/ffc554f5/attachment-0001.htm<https://urldefense.us/v3/__http:/mailman.mit.edu/pipermail/ecco-support/attachments/20230422/ffc554f5/attachment-0001.htm__;!!PvBDto6Hs4WbVuu7!MZNUlomQ7Rd8q86kFXtnRzvBwinQeDABIAyCjGtRPf_kvEX2gyrzhSoPamHd2HD2wqVH9arCrRDTDnBK9NCj5HOcl4t_rtQ$>>

------------------------------

Subject: Digest Footer

_______________________________________________
ecco-support mailing list
ecco-support at mit.edu<mailto:ecco-support at mit.edu>
https://mailman.mit.edu/mailman/listinfo/ecco-support<https://urldefense.us/v3/__https:/mailman.mit.edu/mailman/listinfo/ecco-support__;!!PvBDto6Hs4WbVuu7!MZNUlomQ7Rd8q86kFXtnRzvBwinQeDABIAyCjGtRPf_kvEX2gyrzhSoPamHd2HD2wqVH9arCrRDTDnBK9NCj5HOckHz2nQY$>


------------------------------

End of ecco-support Digest, Vol 85, Issue 4
*******************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20230426/310d4253/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f90mkdepend
Type: application/octet-stream
Size: 1467 bytes
Desc: f90mkdepend
URL: <http://mailman.mit.edu/pipermail/ecco-support/attachments/20230426/310d4253/attachment-0001.obj>


More information about the ecco-support mailing list