-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1378 from LLNL/pr-from-fork/1376
Add Sina as Axom component
- Loading branch information
Showing
83 changed files
with
9,506 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,11 +76,11 @@ jobs: | |
HOST_CONFIG: '[email protected]' | ||
osx_gcc: | ||
VM_ImageName: 'macos-13' | ||
CMAKE_EXTRA_FLAGS: '-DAXOM_ENABLE_SIDRE:BOOL=OFF -DAXOM_ENABLE_INLET:BOOL=OFF -DAXOM_ENABLE_KLEE:BOOL=OFF' | ||
CMAKE_EXTRA_FLAGS: '-DAXOM_ENABLE_SIDRE:BOOL=OFF -DAXOM_ENABLE_INLET:BOOL=OFF -DAXOM_ENABLE_KLEE:BOOL=OFF -DAXOM_ENABLE_SINA:BOOL=OFF' | ||
TEST_TARGET: 'osx_gcc' | ||
windows: | ||
VM_ImageName: 'windows-2019' | ||
CMAKE_EXTRA_FLAGS: '-DAXOM_ENABLE_SIDRE:BOOL=OFF -DAXOM_ENABLE_INLET:BOOL=OFF -DAXOM_ENABLE_KLEE:BOOL=OFF' | ||
CMAKE_EXTRA_FLAGS: '-DAXOM_ENABLE_SIDRE:BOOL=OFF -DAXOM_ENABLE_INLET:BOOL=OFF -DAXOM_ENABLE_KLEE:BOOL=OFF -DAXOM_ENABLE_SINA:BOOL=OFF' | ||
TEST_TARGET: 'win_vs' | ||
|
||
pool: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and | ||
# other Axom Project Developers. See the top-level LICENSE file for details. | ||
# | ||
# SPDX-License-Identifier: (BSD-3-Clause) | ||
#------------------------------------------------------------------------------ | ||
# Sina -- API to write data to Sina's common file format | ||
#------------------------------------------------------------------------------ | ||
|
||
#------------------------------------------------------------------------------ | ||
# Specify necessary dependencies | ||
# | ||
# Note: Sina also optionally depends on Adiak when AXOM_USE_ADIAK=ON | ||
#------------------------------------------------------------------------------ | ||
axom_component_requires(NAME Sina | ||
TPLS Conduit ) | ||
|
||
#------------------------------------------------------------------------------ | ||
# Specify the sina headers/sources | ||
#------------------------------------------------------------------------------ | ||
set(sina_headers | ||
core/ConduitUtil.hpp | ||
core/Curve.hpp | ||
core/CurveSet.hpp | ||
core/DataHolder.hpp | ||
core/Datum.hpp | ||
core/Document.hpp | ||
core/File.hpp | ||
core/ID.hpp | ||
core/Record.hpp | ||
core/Relationship.hpp | ||
core/Run.hpp | ||
) | ||
|
||
set(sina_sources | ||
core/ConduitUtil.cpp | ||
core/Curve.cpp | ||
core/CurveSet.cpp | ||
core/DataHolder.cpp | ||
core/Datum.cpp | ||
core/Document.cpp | ||
core/File.cpp | ||
core/ID.cpp | ||
core/Record.cpp | ||
core/Relationship.cpp | ||
core/Run.cpp | ||
) | ||
|
||
# Add Adiak header and source | ||
blt_list_append( TO sina_headers ELEMENTS core/AdiakWriter.hpp IF AXOM_USE_ADIAK ) | ||
blt_list_append( TO sina_sources ELEMENTS core/AdiakWriter.cpp IF AXOM_USE_ADIAK ) | ||
|
||
# Add fortran interface for Sina | ||
if (ENABLE_FORTRAN) | ||
blt_list_append( TO sina_headers ELEMENTS interface/sina_fortran_interface.h) | ||
blt_list_append( TO sina_sources | ||
ELEMENTS interface/sina_fortran_interface.cpp interface/sina_fortran_interface.f) | ||
endif() | ||
|
||
#------------------------------------------------------------------------------ | ||
# Build and install the library | ||
#------------------------------------------------------------------------------ | ||
set(sina_depends | ||
core | ||
conduit::conduit | ||
) | ||
|
||
blt_list_append( TO sina_depends ELEMENTS adiak::adiak IF AXOM_USE_ADIAK ) | ||
|
||
axom_add_library(NAME sina | ||
SOURCES ${sina_sources} | ||
HEADERS ${sina_headers} | ||
DEPENDS_ON ${sina_depends} | ||
FOLDER axom/sina) | ||
|
||
axom_write_unified_header(NAME sina | ||
HEADERS ${sina_headers}) | ||
|
||
axom_install_component(NAME sina | ||
HEADERS ${sina_headers}) | ||
|
||
#------------------------------------------------------------------------------ | ||
# Add tests and examples | ||
#------------------------------------------------------------------------------ | ||
if(AXOM_ENABLE_TESTS) | ||
add_subdirectory(tests) | ||
endif() | ||
|
||
if(AXOM_ENABLE_EXAMPLES) | ||
add_subdirectory(examples) | ||
endif() |
Oops, something went wrong.