Skip to content

Release candidate0.1 #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ACKNOWLEDGEMENTS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ACKNOWLEDGEMENTS
----------------
HPCReact is originally developed at Lawrence Livermore National Laboratory operated by Lawrence Livermore National Security, LLC for the United States Department of Energy under Contract DE-AC52-07NA27344
12 changes: 12 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Copyright (c) 2025 Lawrence Livermore National Security LLC
All rights reserved

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
# hpcReact
Package for modeling of chemical reactions on High Performance Computing Systems
HPCReact
-----------------------------
HPCReact is a collection of inline, device-callable functions for modeling pointwise chemical reactions.
It is designed to provide building blocks for constructing computational kernels that update chemical states in simulations involving reactive chemistry.


Documentation
-------------
To be added...




Release
-------

For release details and restrictions, please read the [LICENSE](./LICENSE) file.

For acknowledgements, please read the [ACKNOWLEDGEMENTS](./ACKNOWLEDGEMENTS ) file.

`LLNL-CODE-2006543`
11 changes: 11 additions & 0 deletions src/common/CArrayWrapper.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once
#include "macros.hpp"
#include <initializer_list>
Expand Down
11 changes: 11 additions & 0 deletions src/common/DirectSystemSolve.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once

#include "macros.hpp"
Expand Down
11 changes: 11 additions & 0 deletions src/common/constants.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once

namespace hpcReact
Expand Down
11 changes: 11 additions & 0 deletions src/common/macros.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once


Expand Down
11 changes: 11 additions & 0 deletions src/common/macrosCleanup.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

// #undef HPCREACT_USE_DEVICE
// #undef HPCREACT_HOST_DEVICE
// #undef HPCREACT_GLOBAL
Expand Down
11 changes: 11 additions & 0 deletions src/common/nonlinearSolvers.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once

#include "macros.hpp"
Expand Down
11 changes: 11 additions & 0 deletions src/common/pmpl.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once

#include "common/macros.hpp"
Expand Down
11 changes: 11 additions & 0 deletions src/common/printers.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once

#include <stdio.h>
Expand Down
11 changes: 11 additions & 0 deletions src/common/symmetricMatrix.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once

/**
Expand Down
11 changes: 11 additions & 0 deletions src/common/unitTests/testDirectSystemSolve.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/


#include "../DirectSystemSolve.hpp"
#include "common/pmpl.hpp"
Expand Down
11 changes: 11 additions & 0 deletions src/reactions/exampleSystems/BulkGeneric.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once

#include "../reactionsSystems/Parameters.hpp"
Expand Down
11 changes: 11 additions & 0 deletions src/reactions/exampleSystems/MoMasBenchmark.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once

#include "../reactionsSystems/Parameters.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/


#include "reactions/unitTestUtilities/equilibriumReactionsTestUtilities.hpp"
#include "../BulkGeneric.hpp"
Expand Down
11 changes: 11 additions & 0 deletions src/reactions/exampleSystems/unitTests/testKineticReactions.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/


#include "reactions/unitTestUtilities/kineticReactionsTestUtilities.hpp"
#include "../BulkGeneric.hpp"
Expand Down
11 changes: 11 additions & 0 deletions src/reactions/geochemistry/Carbonate.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once

#include "../reactionsSystems/Parameters.hpp"
Expand Down
11 changes: 11 additions & 0 deletions src/reactions/geochemistry/Forge.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once

#include "../reactionsSystems/Parameters.hpp"
Expand Down
11 changes: 11 additions & 0 deletions src/reactions/geochemistry/GeochemicalSystems.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once

#include "Carbonate.hpp"
Expand Down
11 changes: 11 additions & 0 deletions src/reactions/geochemistry/Ultramafics.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once

#include "../reactionsSystems/Parameters.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/


#include "reactions/unitTestUtilities/equilibriumReactionsTestUtilities.hpp"
#include "../GeochemicalSystems.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/


#include "reactions/unitTestUtilities/kineticReactionsTestUtilities.hpp"
#include "../GeochemicalSystems.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#include "reactions/unitTestUtilities/mixedReactionsTestUtilities.hpp"
#include "../GeochemicalSystems.hpp"

Expand Down
11 changes: 11 additions & 0 deletions src/reactions/massActions/MassActions.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#pragma once

#include "common/macros.hpp"
Expand Down
11 changes: 11 additions & 0 deletions src/reactions/massActions/unitTests/testMassActions.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* ------------------------------------------------------------------------------------------------------------
* SPDX-License-Identifier: (BSD-3-Clause)
*
* Copyright (c) 2025- Lawrence Livermore National Security LLC
* All rights reserved
*
* See top level LICENSE files for details.
* ------------------------------------------------------------------------------------------------------------
*/

#include "../MassActions.hpp"
#include "reactions/geochemistry/GeochemicalSystems.hpp"
#include "common/printers.hpp"
Expand Down
Loading