Skip to content

Commit

Permalink
eos: port to new build system
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentVanlaer committed Aug 26, 2024
1 parent aedf100 commit dbd8063
Show file tree
Hide file tree
Showing 24 changed files with 76 additions and 378 deletions.
75 changes: 75 additions & 0 deletions eos/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
include ../make/defaults-module.mk

# Build

MODULE_NAME := eos
SRCS := public/eos_def.f90 \
public/eos_lib.f90 \
private/create_EXCOR7_table.f90 \
private/create_FSCRliq8_table.f90 \
private/eos_blend.f90 \
private/eoscms_eval.f90 \
private/eos_ctrls_io.f90 \
private/eosde_eval.f90 \
private/eosdt_eval.f90 \
private/eosdt_load_tables.f90 \
private/eosdt_support.f90 \
private/eos_helm_eval.f90 \
private/eos_initialize.f90 \
private/eospc_eval.f90 \
private/eospt_eval.f90 \
private/gauss_fermi.f90 \
private/helm_alloc.f90 \
private/helm.f90 \
private/helm_polynomials.f90 \
private/ideal.f90 \
private/ion_offset.f90 \
private/pc_eos.f90 \
private/pc_support.f90 \
private/skye_coulomb.f90 \
private/skye_coulomb_liquid.f90 \
private/skye_coulomb_solid.f90 \
private/skye.f90 \
private/skye_ideal.f90 \
private/skye_thermodynamics.f90 \
other/other_eos.f90
SRCS_CHECK = test/src/test_eos.f90 \
test/src/eos_support.f90 \
test/src/test_eos_blend.f90 \
test/src/test_eos_support.f90
INTERNAL_DEPENDS_ON := const math utils chem num auto_diff interp_1d interp_2d
EXTERNAL_DEPENDS_ON :=
BINTYPE := static-lib
INCLUDE_DIRS := -Iprivate -Ipublic -Idefaults

# Testing

CHECK_RESULTS_GOLDEN := test/test_output

# Install

MODULES := eos_def.mod eos_lib.mod
INSTALL_INCLUDES := public/helm_def.dek
INSTALL_COMMANDS += install-free-eos install-cms install-dt install-pc

include $(MAKE_DIR)/Makefile

install-free-eos:
if [ ! -r ../data/eosFreeEOS_data ]; then \
tar -xJf eosFreeEOS_data.tar.xz -C ../data; \
fi

install-cms:
if [ ! -r ../data/eosCMS_data ]; then \
tar -xJf eosCMS_data.tar.xz -C ../data; \
fi

install-dt:
if [ ! -r ../data/eosDT_data ]; then \
tar -xJf eosDT_data.tar.xz -C ../data; \
xz --decompress --keep --stdout helm_table.dat.xz > ../data/eosDT_data/helm_table.dat; \
fi

install-pc:
mkdir -p ../data/eosPC_support_data
mkdir -p ../data/eosPC_support_data/cache
3 changes: 0 additions & 3 deletions eos/build_and_test

This file was deleted.

3 changes: 0 additions & 3 deletions eos/build_and_test_parallel

This file was deleted.

8 changes: 0 additions & 8 deletions eos/clean

This file was deleted.

2 changes: 0 additions & 2 deletions eos/export

This file was deleted.

4 changes: 0 additions & 4 deletions eos/i1

This file was deleted.

25 changes: 0 additions & 25 deletions eos/i1_preprocessors

This file was deleted.

4 changes: 0 additions & 4 deletions eos/i1p

This file was deleted.

8 changes: 0 additions & 8 deletions eos/install

This file was deleted.

8 changes: 0 additions & 8 deletions eos/make/makefile

This file was deleted.

153 changes: 0 additions & 153 deletions eos/make/makefile_base

This file was deleted.

1 change: 0 additions & 1 deletion eos/mk

This file was deleted.

1 change: 0 additions & 1 deletion eos/test/ck

This file was deleted.

2 changes: 0 additions & 2 deletions eos/test/clean

This file was deleted.

4 changes: 0 additions & 4 deletions eos/test/cleanup

This file was deleted.

2 changes: 0 additions & 2 deletions eos/test/export

This file was deleted.

8 changes: 0 additions & 8 deletions eos/test/make/makefile

This file was deleted.

Loading

0 comments on commit dbd8063

Please sign in to comment.