Difference between revisions of "Compiling Kharon"

From Kraken Wiki
Jump to: navigation, search
(Created page with "Kharon is Kraken's thermal hydraulics solver containing both Fortran and C code. === Linux === The makefiles are configured to use gnu compilers (gcc and gfortran) *On Ubunt...")
 
Line 1: Line 1:
 
Kharon is Kraken's thermal hydraulics solver containing both Fortran and C code.
 
Kharon is Kraken's thermal hydraulics solver containing both Fortran and C code.
 +
 +
Build instructions are provided for Linux and Windows.
  
 
=== Linux ===
 
=== Linux ===

Revision as of 09:56, 30 January 2024

Kharon is Kraken's thermal hydraulics solver containing both Fortran and C code.

Build instructions are provided for Linux and Windows.

Linux

The makefiles are configured to use gnu compilers (gcc and gfortran)

  • On Ubuntu Bionic
    • sudo apt install gcc
    • sudo apt install gfortran
  • On potku2 (espnr130)
    • You can use the common installation of gnu 6.3.0 compilers by setting the following in your .bash_profile
##### GCC 6.3.0 (2020) #####

SAL=/share/apps/gcc/6.3.0
export PATH=${SAL}/bin:${PATH}
export INCLUDE=${SAL}/include:${INCLUDE}
export LD_LIBRARY_PATH=${SAL}/lib64:${SAL}/lib:${LD_LIBRARY_PATH}
  • Or alternatively
module load gcc

To compile everything, go to the base directory (Kharon) and command:

make

To clean the compilation, go to the base directory (Kharon) and command:

make clean

Windows

  • Open KharonGit.sln in Visual Studio in either vs2015 or vs2019 folder, depending on Visual Studio version
  • Compile tableMaker project
  • Run tableMaker.exe (not in Kharon/vs201?/libTable folder but in Kharon/libTable), thus writing waterTable.h
  • Compile KharonGit project