Hi Boris,
Thank you for your answer. I tried to install TELEMAC this way, and everything works fine during the build procedure as described on wintel github (I get "my work is done" at the end).
However, it seems that I have several problems. First, telemac cannot find python (nor telemac python scripts), but this can be solved unpractically but easily by specifying the full python path each time. As you can see below, I made sure folder to python scripts C:\TELEMAC\external\python\Scripts is in my PATH variable, as well as path to telemac scripts, cmake, mingw64 bin folder.
When I then try to compile telemac, I get the error below... "mpif90 command can't be found". It also seems to happen when compiling declarations_special.F, the file I'm trying to modify here, even when I restor the original value in MAXKEYWORDS variable.
C:\TELEMAC\scripts\python3>PATH
PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.0.166\windows\mpi\intel64\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\wapt;C:\Users\CCMA\AppData\Local\Programs\Python\Launcher\;C:\Users\CCMA\AppData\Local\Microsoft\WindowsApps;C:\Users\CCMA\AppData\Local\Programs\Git\cmd;C:\Users\CCMA\cmake-3.28.1-windows-x86_64\bin;C:\TELEMAC\scripts\python3\;C:\TELEMAC\external\python\Scripts\;C:\mingw64\bin;
C:\TELEMAC\scripts\python3>C:\TELEMAC\external\python\Scripts\python compile_telemac.py --clean
Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_
(_)
_ __ ___ __ _ _ _ __
| '_ ` _ \ / _` || || '_ \
| | | | | || (_| || || | | |
|_| |_| |_| \__,_||_||_| |_|
+> build deleted!
_ _ _
| | | | (_)
__ _ _ __ _ _ ___ | |_ __ _ | |_ _ ___
/ _` || '_ \ | | | | / __|| __| / _` || __|| | / __|
| (_| || | | || |_| | _ \__ \| |_ | (_| || |_ | || (__
\__, ||_| |_| \__,_|(_)|___/ \__| \__,_| \__||_| \___|
__/ |
|___/
Scanning the source code for:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gnu.static:
+> Windows static build using Mingw and MS-MPI
+> root: C:\TELEMAC
+> module: ad / api / artemis / bief
damocles / gaia / gretel / hermes
identify_liq_bnd / khione / mascaret / nestor
parallel / partel / postel3d / special
stbtel / telemac2d / telemac3d / tomawac
waqtel
Compiling from the tree top api plus dependents
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+> Compile / Assemble / Link
'mpif90' n’est pas reconnu en tant que commande interne ] 0% | ---s
ou externe, un programme exécutable ou un fichier de commandes.
Traceback (most recent call last):
File "C:\TELEMAC\scripts\python3\compile_telemac.py", line 152, in <module>
main()
File "C:\TELEMAC\scripts\python3\compile_telemac.py", line 139, in main
compile_cmdf(options.ncsize, modules, options.verbose)
File "C:\TELEMAC\scripts\python3\compilation\compil_tools.py", line 1283, in compile_cmdf
raise TelemacException(\
utils.exceptions.TelemacException:
+> failed: ...TELEMAC\sources\utils\special\declarations_special.F
... The following command failed for the reason in the listing
mpif90 -c -O2 -cpp -fconvert=big-endian -frecord-marker=4 -DHAVE_I16 -DHAVE_MPI -DHAVE_MUMPS -DHAVE_MED -DHAVE_AED2 -DHAVE_GOTM -I C:\TELEMAC\builds\gnu.static\obj\utils\special -I C:\TELEMAC\builds\gnu.static\obj\utils\damocles -I C:\TELEMAC\builds\gnu.static\obj\utils\parallel -I C:\TELEMAC\builds\gnu.static\obj\utils\hermes -I C:\TELEMAC\builds\gnu.static\obj\utils\ad -I C:\TELEMAC\builds\gnu.static\obj\utils\bief -I C:\TELEMAC\builds\gnu.static\obj\tomawac -I C:\TELEMAC\builds\gnu.static\obj\nestor -I C:\TELEMAC\builds\gnu.static\obj\waqtel -I C:\TELEMAC\builds\gnu.static\obj\khione -I C:\TELEMAC\builds\gnu.static\obj\gaia -I C:\TELEMAC\builds\gnu.static\obj\telemac2d -I C:\TELEMAC\builds\gnu.static\obj\utils\gretel -I C:\TELEMAC\builds\gnu.static\obj\utils\partel -I C:\TELEMAC\builds\gnu.static\obj\telemac3d -I C:\TELEMAC\builds\gnu.static\obj\artemis -I C:\TELEMAC\builds\gnu.static\obj\api -I%MEDHOME%/include -I%MUMPSHOME%/include -I%AEDHOME%/include -I%GOTMHOME%/include C:\TELEMAC\sources\utils\special\declarations_special.F
C:\TELEMAC\scripts\python3>>
Do you know what could cause this error ?
Thank you very much