How to build windows executable file(.exe) through TOUGH3 code?
I tried to build an executable file by mingw32 on the UBUNTU platform, but I failed.
10 replies
-
Hi Tianjiao,
Did you follow the instruction provided at: https://tough.forumbee.com/t/369y7b/tough3-installation-on-pc-updates-install-ubuntu-terminal-and-then-install-tough3
It seems there is a requirement for the GCC version. Can you please try?
Thanks
Yingqi
-
Thanks, Yingqi. I followed these instructions and got an executable file successfully which only works under Linux. However, I need an executable that works under windows.
-
Tianjiao,
Cygwin does now work well. Do you have intel fortran? If not I can help you. Can you send me an email? Yingqi
-
Hi Tianjiao,
If you have intel fortran and MS studio, please follow the steps to make executables:
1. Create a new project
2. Add files to the project. Typically files need to be included are :csv_file.f90, Data_DD.f90, eos**.f90, Finalout.f90, Input_Output.f90, Main_Comp.f90, Mesh_Maker.f90, MULTI.f90, Multi_Compo.f90, parallel_stubs.f90, radheat.f90, solver_core.f90, t2_solver_core.f90, t2solv.f90, thrm.f90, TOUGH3.f90, Utility.f90
If it is eco2n and eco2m, you need to add two more files: thrmb.f90 and thrmc.f90
If it is eco2n_v2, you need to add three more files: thrmb.f90, thrmc.f90, and thrmc_v2.f90.
Most of the files are located under: TOUGH3-Code\esd-tough3\src
But some solver related files are at: TOUGH3-Code\esd-toughlib\src\t2_solver_interface,
and TOUGH3-Code\esd-toughlib\src
3. Click "project" on the top manu bar, select "Configuration properties", --> Fortran -->preprocessor, change preprocessor source file to Yes(/fpp);
"Configuration properties", --> Fortran -->Libraries: select "Multithreaded" for "runtime library", and "Sequential(/Qmklsequential" for "Use Intel Math Kernel library"
4. Click on "build project".
Then you are done. Good luck.
Yingqi