Question about ATS-PFLOTRAN

61 views
Skip to first unread message

chen ding

unread,
Sep 9, 2025, 3:00:45 AMSep 9
to Amanzi-ATS Users
Hi all,

Previously, I was able to successfully use ATS-PFLOTRAN to simulate mineral dissolution and Monod reactions. Now, I would like to customize some reactions through Sandbox. In PFLOTRAN, after customizing the reactions, it is necessary to run 'make pflotran'. However, when I attempt to run 'make pflotran' in ATS-PFLOTRAN, the following error occurs. I would greatly appreciate any suggestions or guidance.
 
Chen
make pflotran error.txt

Sergi Molins Rafa

unread,
Sep 9, 2025, 10:10:58 AMSep 9
to chen ding, Amanzi-ATS Users
Hi Chen

If I understand correctly, what you want is to rebuild the PFLOTRAN library used by ATS after you made some changes to PFLOTRAN, so that you can use ATS with the new updated functions in PFLOTRAN.

If so, note the following points:

1. The PFLOTRAN library that ATS uses is not the same as PFLOTRAN (i.e. it is a different makefile target in the pflotran build; it is not 'make pflotran')
2. To build the PFLOTRAN library that ATS uses, you will need to set the same variables you set to build ATS and the TPLS because PFLOTRAN has dependencies. In this case, PETSC and HDF5 (that is the error you are getting in fact, that PFLOTRAN needs HDF5) 
3. Once you successfully rebuild the PFLOTRAN library, you will have to rebuild the libraries that in turn depend on it. In this case, Alquimia. 
4. Once you have rebuilt the libraries (TPLS), you can rebuild ATS itself.

So the question for you is, how familiar with the Amanzi TPLS build system? It seems you made your way into the PFLOTRAN TPL build, correct?

Thanks

Sergi


--
You received this message because you are subscribed to the Google Groups "Amanzi-ATS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ats-users/8c55ac7a-b0ab-4804-9365-71aa43740b16n%40googlegroups.com.
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

chen ding

unread,
Sep 12, 2025, 8:26:48 PMSep 12
to Amanzi-ATS Users
Hi Sergi

Thank you very much for your timely and detailed assistance. I have successfully rebuild PFLOTRAN and resolved the issues. 

Best regards,
Chen

Reply all
Reply to author
Forward
0 new messages