[MITgcm-support] [EXTERNAL] Ask for MITgcm optfile and generating "make"

Menemenlis, Dimitris (US 329B) dimitris.menemenlis at jpl.nasa.gov
Tue Aug 20 07:52:32 EDT 2024


Hi Firman, maybe these will be useful to you: https://github.com/coessing/coessing-mitgcm-2023/tree/main/doc

In particular look at Ubuntu_on_Windows.txt and MITgcm_on_Ubuntu.txt

For 1, the optfile should be selected automatically.

For 2a, you need to specify location of your MPI include directory.

For 2b, you need to modify SIZE.h

If you follow instructions in documents above, it should work — if not, please let me know and I will adjust.

Cheers, Dimitris


On Aug 20, 2024, at 4:06 AM, Mochamad Firman Ghazali <afghazali25 at gmail.com> wrote:

Dear MITgcm team,

I am Firman Ghazali. I just started to learn ocean numerical modelling, my background is in remote sensing. I am interested in learning and using MITgcm. I have tried to install the MITgcm under my Windows subsystem linux (WSL) on my Windows 10, AMD Ryzen 7, AMD Radeon graphic, and 16GB of RAM.


  1.  The installation process was successfully completed. However, I encountered an issue when completing the opt file. I found it difficult to select suitable content for the opt file in the tools/build_options directory. Therefore, I would like to ask for help to solve this issue.
  2.  After googling, I found the example of the optfile that suit with my laptop (I guess) from https://www.coaps.fsu.edu/pub/taylor/haibo_sim_011421/MITgcm/tools/suggest_optfile_names<https://urldefense.us/v3/__https://www.coaps.fsu.edu/pub/taylor/haibo_sim_011421/MITgcm/tools/suggest_optfile_names__;!!PvBDto6Hs4WbVuu7!N5bbYoWXLvmUr56TC1repC48OONvP7KNblSiaWThc8e90vHeqv8UHR4zXsXpTaBwK4uYQa5Py9x1sQo371feoAoY5277bxtk$>. I am not sure, but it worked then the following error comes after activating the "make depend" and "make"

/home/firmanghazali/MITgcm/tools/cyrus-imapd-makedepend/makedepend: warning:  all_proc_die.F (reading EESUPPORT.h, line 173): cannot find include file "mpif.h"
        not in mpif.h
        not in mpif.h
        not in ./mpif.h
        not in /usr/lib/gcc/x86_64-linux-gnu/11/include/mpif.h
        not in /usr/local/include/mpif.h
        not in /usr/include/x86_64-linux-gnu/mpif.h
        not in /usr/include/mpif.h
        not in /usr/include/mpif.h
/home/firmanghazali/MITgcm/tools/f90mkdepend >> Makefile

and

Update AD_CONFIG.h and make ./mitgcmuv
make -f Makefile ./mitgcmuv
make[1]: Entering directory '/home/firmanghazali'
f77   -c chksum_tiled.f
chksum_tiled.f:434:4:

  434 |   These lines are here to deliberately cause a compile-time error.      |    1
Error: Non-numeric character in statement label at (1)
chksum_tiled.f:435:4:
  435 |   If you see these lines in your .F files or the compiler shows them     |    1
Error: Non-numeric character in statement label at (1)
chksum_tiled.f:436:4:
  436 |   as an error then it means you have not placed your configuration      |    1
Error: Non-numeric character in statement label at (1)
chksum_tiled.f:437:4:
  437 |   files in the appropriate place.      |    1
Error: Non-numeric character in statement label at (1)
chksum_tiled.f:438:4:
  438 |   You need to place you own copy of SIZE.h in the include      |    1
Error: Non-numeric character in statement label at (1)
chksum_tiled.f:439:4:
  439 |   path for the model, and comment out these lines.      |    1
Error: Non-numeric character in statement label at (1)
make[1]: *** [Makefile:1224: chksum_tiled.o] Error 1
make[1]: Leaving directory '/home/firmanghazali'
make: *** [Makefile:1136: fwd_exe_target] Error 2


Many thanks,
Firman Ghazali

--
Mochamad Firman Ghazali, S. Pd., M. T.
(Environmental Remote Sensing)
Department of Geodesy and Geomatics
Faculty of Engineering, University of Lampung
======================================
Associate Researcher
Center for Remote Sensing, Bandung Institute of Technology
+62 821 2193 5513
======================================
Sinta ID = 6679166
Google Scholar ID = lzTlSHkAAAAJ
Scopus ID = 57210807769
ORCID iD = https://orcid.org/0000-0003-1716-4063<https://urldefense.us/v3/__https://orcid.org/0000-0003-1716-4063__;!!PvBDto6Hs4WbVuu7!N5bbYoWXLvmUr56TC1repC48OONvP7KNblSiaWThc8e90vHeqv8UHR4zXsXpTaBwK4uYQa5Py9x1sQo371feoAoY551jb4G9$>
_______________________________________________
MITgcm-support mailing list
MITgcm-support at mitgcm.org
https://urldefense.us/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!PvBDto6Hs4WbVuu7!N5bbYoWXLvmUr56TC1repC48OONvP7KNblSiaWThc8e90vHeqv8UHR4zXsXpTaBwK4uYQa5Py9x1sQo371feoAoY5w6rFRan$

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20240820/f2af2245/attachment-0001.html>


More information about the MITgcm-support mailing list