Revision 71de76f6c662926f5da5408853e22786055a6194 authored by Thomas Fischer on 09 July 2021, 06:29:00 UTC, committed by Thomas Fischer on 30 August 2021, 05:26:04 UTC
The getContent() method is used only on very few
places. Especially, it isn't used in the computation
of any THMC processes. So the content doesn't need
to be stored which saves memory. Furthermore, the time
time for reading / initializing a mesh is reduced.

In a hex mesh with 100x100x100 elements this saves
2.6% of storage and circa 25% time.
1 parent deb816d
Raw File
CMakeLists.txt
# Source files grouped by a directory
get_source_files(SOURCES)
append_source_files(SOURCES PhreeqcIOData)
append_source_files(SOURCES PhreeqcKernelData)
append_source_files(SOURCES Common)

# Create the library
ogs_add_library(ChemistryLib ${SOURCES})

target_link_libraries(
    ChemistryLib PUBLIC iphreeqc PRIVATE NumLib
)

# See https://github.com/ufz/ogs/pull/2982#issuecomment-641086788
set_source_files_properties(
    PhreeqcIO.cpp CreateChemicalSolverInterface.cpp PhreeqcKernel.cpp
    PROPERTIES SKIP_UNITY_BUILD_INCLUSION TRUE
)
back to top