Skip to content

ELM‐alquimia‐pflotran (bgc) Libraries

Fengming Yuan edited this page Jul 2, 2025 · 1 revision

Build a PFLOTRAN (bgc) coupled ALQUIMIA Library For ELM

PLEASE see some details on instructions in https://github.com/ORNLngee

UPDATED: 2025-06-17

(1) git clone repository

The following is a version of 2021, for successfully coupled with ELM.

git clone https://github.com/fmyuan/pflotran-elm-interface.git
cd pflotran-elm-infterface
git switch bsulman/pflotran-elm-interface
git clone https://github.com/fmyuan/alquimia-dev.git
cd alquimia-dev
git switch bsulman/pflotran_SOMdec_reactions

(2a) if not coupled with CLM, this repository should be a stand-alone PFLOTRAN model

  • the Source code directory:
cd ./src/pflotran
  • build it by issuing command:
make PETSC_DIR=$PETSC_DIR pflotran
(where $PETSC_DIR is your PETSC_DIR directory, e.g. ```/ccsopen/proj/cli185/petsc-3.x-noopt``` for this version of PFLOTRAN on CADES-baseline machine in ORNL)

(2b) if coupling ELM with PFLOTRAN (bgc) via ALQUIMIA, need to build a library named as libpflotranchem.a.

make PETSC_DIR=$PETSC_DIR libpflotranchem.a

(3) build ALQUIMIA lib with PFLOTRAN bgc libs libpflotranchem.a.

An example bash script to build ALQUIMIA libs can be found here

Clone this wiki locally