Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
3c04d96
COMP: missing variables
Apr 4, 2025
eba2f0e
Merge branch 'Parallel-Explicit-Solver' of https://github.com/Adrian-…
Apr 7, 2025
55fb899
WIP: make refactor MPI parallel
Apr 8, 2025
61dd3c9
STYLE: correct spelling
Apr 9, 2025
9bb3cfb
WIP: MPI refactor
Apr 10, 2025
7187423
Merge remote-tracking branch 'origin/main' into Parallel-Explicit-Solver
Apr 15, 2025
fa2115f
WIP: MPI work
Apr 16, 2025
362e1a9
WIP: MPI refactor
Apr 22, 2025
519c236
WIP: MPI work
Apr 25, 2025
2f1f615
Merge remote-tracking branch 'origin/merge_conflict_resolution' into …
Adrian-Diaz May 20, 2025
db7592e
Merge branch 'lanl:main' into Parallel-Explicit-Solver
Adrian-Diaz May 20, 2025
e87cd35
Merge branch 'Parallel-Explicit-Solver' of https://github.com/Adrian-…
May 23, 2025
6c78942
BUG: merge corrections
May 23, 2025
febd032
WIP: MPI changes
May 24, 2025
e7d73d1
WIP: MPI changes
May 24, 2025
8aca6b5
WIP: MPI work
May 25, 2025
e3e70b7
WIP: MPI work
May 26, 2025
c3a12ad
WIP: MPI work
May 26, 2025
8d73e2f
WIP: MPI work
May 27, 2025
a7a0a09
Merge branch 'lanl:main' into Parallel-Explicit-Solver
Adrian-Diaz May 28, 2025
5f6269f
WIP: MPI compile work
Adrian-Diaz May 29, 2025
7cfe237
WIP: MPI work
May 29, 2025
1bae191
WIP: MPI work (it compiles!)
May 30, 2025
043f5a9
WIP: MPI in refactor
Jun 14, 2025
7b37dae
WIP: init partition maps and comm plans
Jun 16, 2025
33b6fa8
WIP: MPI refactor
Jun 17, 2025
3acb0ce
WIP: MPI refactor work
Jun 18, 2025
f1e788f
WIP: MPI refactor
Jun 23, 2025
32b85e1
Merge remote-tracking branch 'origin/main' into merge-conflict-resolu…
Jun 25, 2025
f9187c5
Merge pull request #15 from Adrian-Diaz/merge-conflict-resolution
Adrian-Diaz Jun 25, 2025
deded92
WIP: MPI refactor work
Jun 26, 2025
6d61337
WIP: MPI refactor
Jun 27, 2025
19b8010
WIP: MPI mesh builder
Jul 2, 2025
5e7f632
WIP: MPI mesh build
Jul 4, 2025
60fa2cf
WIP: MPI refactor
Jul 5, 2025
52b3845
WIP: add node mass comms at setup
Adrian-Diaz Jul 7, 2025
9ba625f
WIP: MPI refactor
Jul 9, 2025
4789d72
Merge branch 'Parallel-Explicit-Solver' of https://github.com/Adrian-…
Jul 9, 2025
32e5285
WIP: MPI refactor
Jul 11, 2025
eb68370
WIP: MPI refactor
Jul 12, 2025
7bc78f3
WIP: MPI refactor
Jul 12, 2025
25f6ad1
WIP: MPI refactor, collective ensight output on rank 0
Jul 16, 2025
34cd90d
WIP: MPI refactor; 3D sgh works with phi_min=1
Jul 17, 2025
e6341a1
WIP: collective vtu writer
Jul 30, 2025
0c3d876
WIP: collective vtu writer
Aug 1, 2025
8a35e3e
WIP: collective vtu writer
Aug 3, 2025
98d8a2b
WIP: collective vtu write
Aug 4, 2025
b4e3dea
WIP: vtu collective writer
Aug 9, 2025
87f5ee4
WIP: collective vtu writer
Aug 11, 2025
f877dad
BUG: collective vtu writer
Aug 11, 2025
dcdbb3a
BUG: collective vtu writer
Aug 12, 2025
6f0e828
ENH: collective vtu writer
Aug 13, 2025
1e88ed0
Merge remote-tracking branch 'origin/main' into merge_conflict_resolu…
Aug 16, 2025
a2da766
Merge pull request #16 from Adrian-Diaz/merge_conflict_resolution
Adrian-Diaz Aug 16, 2025
3dc2dd6
WIP: parallel vtm write
Aug 19, 2025
cfa378d
WIP: parallel vtm writer
Aug 19, 2025
83d3141
WIP: fully parallel vtm
Aug 21, 2025
7bd9507
WIP: parallel vtm writer
Aug 22, 2025
c5202aa
WIP: parallel vtm writer
Aug 25, 2025
6f86941
Merge pull request #17 from Adrian-Diaz/merge_conflict_resolution
Adrian-Diaz Aug 25, 2025
31612e5
WIP: vtu reader
Sep 5, 2025
4747d25
WIP: vtu read
Sep 6, 2025
623c142
WIP : vtu mesh reader
Sep 8, 2025
e31114e
WIP: vtu reader
Sep 9, 2025
0c32ec7
WIP: vtu reader
Sep 10, 2025
96ea2df
Merge branch 'lanl:main' into Parallel-Explicit-Solver
Adrian-Diaz Sep 11, 2025
bcd5a6e
WIP: vtu debug
Adrian-Diaz Sep 13, 2025
3da5535
ENH: parallel vtu reader
Adrian-Diaz Sep 15, 2025
a788725
WIP: 2D SGH
Sep 16, 2025
bca150e
ENH: 2D sgh mpi enabled
Sep 23, 2025
4f311d3
BUG: undefined behavior in vtu read
Sep 23, 2025
dc54b02
Merge branch 'Parallel-Explicit-Solver' into MergeConflictResolution
Sep 24, 2025
6b384de
Merge pull request #18 from Adrian-Diaz/MergeConflictResolution
Adrian-Diaz Sep 24, 2025
f19f898
Merge branch 'lanl:main' into Parallel-Explicit-Solver
Adrian-Diaz Sep 24, 2025
51ae26d
BUG: set 2D member variable
Sep 24, 2025
5445fcc
ENH: re-add contact regression tests with vtk input
Sep 26, 2025
be6f86c
BUG: build cores env variable
Sep 26, 2025
d141590
BUG: build cores env variable
Sep 26, 2025
ed8cee9
BUG: device updates
Sep 27, 2025
6477c71
BUG: writer gpu bugs
Sep 27, 2025
2ac1f0b
BUG: vtu write with gpu
Sep 28, 2025
ebe8ece
BUG: remove change intended for other branch
Sep 29, 2025
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
33 changes: 16 additions & 17 deletions single-node-refactor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ endif()


if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
# set(CMAKE_BUILD_TYPE Release)
# set(CMAKE_BUILD_TYPE RelWithDebInfo)
set(CMAKE_BUILD_TYPE Release)
endif(NOT CMAKE_BUILD_TYPE)

include_directories(../lib/Elements/matar)
Expand All @@ -40,20 +40,22 @@ add_subdirectory(../lib/Elements/matar cbin)
# include_directories(Mesh-Builder)
# add_subdirectory(Mesh-Builder)

find_package(MPI REQUIRED)
add_definitions(-DHAVE_MPI=1)
set(LINKING_LIBRARIES MPI::MPI_CXX)
if (GPU_AWARE_MPI)
add_definitions(-DHAVE_GPU_AWARE_MPI)
# elseif (GPU_SHARED_MEM)
# add_definitions(-DHAVE_GPU_SHARED_MEM)
endif()
if (FIERRO_ENABLE_TRILINOS)

find_package(Trilinos REQUIRED) #new
# Assume if the CXX compiler exists, the rest do too.
if (EXISTS ${Trilinos_CXX_COMPILER})
set(CMAKE_CXX_COMPILER ${Trilinos_CXX_COMPILER})
set(CMAKE_C_COMPILER ${Trilinos_C_COMPILER})
set(CMAKE_Fortran_COMPILER ${Trilinos_Fortran_COMPILER})
endif()
if(NOT DISTRIBUTION)
# Make sure to use same compilers and flags as Trilinos
set(CMAKE_CXX_FLAGS "${Trilinos_CXX_COMPILER_FLAGS} ${CMAKE_CXX_FLAGS}")
set(CMAKE_C_FLAGS "${Trilinos_C_COMPILER_FLAGS} ${CMAKE_C_FLAGS}")
set(CMAKE_Fortran_FLAGS "${Trilinos_Fortran_COMPILER_FLAGS} ${CMAKE_Fortran_FLAGS}")
endif()


message("\nFound Trilinos! Here are the details: ")
message(" Trilinos_DIR = ${Trilinos_DIR}")
Expand All @@ -71,12 +73,14 @@ if (FIERRO_ENABLE_TRILINOS)

include_directories(${Trilinos_INCLUDE_DIRS} ${Trilinos_TPL_INCLUDE_DIRS})
list(APPEND LINKING_LIBRARIES Trilinos::all_selected_libs)
add_definitions(-DTRILINOS_INTERFACE=1 -DHAVE_MPI=1)
add_definitions(-DTRILINOS_INTERFACE=1 -DHAVE_KOKKOS=1)
else()
find_package(Kokkos REQUIRED)
list(APPEND LINKING_LIBRARIES Kokkos::kokkos)
add_definitions(-DHAVE_KOKKOS=1)
endif()
find_package(Matar REQUIRED)
#find_package(Matar REQUIRED)
include_directories(${MATAR_SOURCE_DIR}/src/include)

include_directories(src/material_models/artificial_viscosity)
include_directories(src/material_models/eos)
Expand All @@ -96,13 +100,8 @@ include_directories(src/common)
include_directories(src/input)
add_subdirectory(src/input)



add_subdirectory(src)




# Add uninstall target
if(NOT TARGET uninstall)
configure_file(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dynamic_options:

mesh_options:
source: file
file_path: ./standard_inputs/meshes/preload.geo
file_path: ./standard_inputs/meshes/preload.vtk
num_dims: 3

#mesh_options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dynamic_options:

mesh_options:
source: file
file_path: ./standard_inputs/meshes/edge_flat_contact.geo
file_path: ./standard_inputs/meshes/edge_flat_contact.vtk
num_dims: 3

#mesh_options:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# vtk DataFile Version 3.0
Hexahedral element example
ASCII
DATASET UNSTRUCTURED_GRID

POINTS 24 float
-0.500000 -2.000000 1.000000
-0.500000 0.000000 1.000000
-0.500000 2.000000 1.000000
-0.500000 -2.000000 0.000000
-0.500000 0.000000 0.000000
-0.500000 2.000000 0.000000
0.500000 -2.000000 1.000000
0.500000 0.000000 1.000000
0.500000 2.000000 1.000000
0.500000 -2.000000 0.000000
0.500000 0.000000 0.000000
0.500000 2.000000 0.000000
-0.500000 -1.000000 2.500000
-0.500000 0.000000 2.500000
-0.500000 1.000000 2.500000
-0.500000 1.000000 3.500000
-0.500000 0.000000 3.500000
-0.500000 -1.000000 3.500000
0.500000 -1.000000 2.500000
0.500000 0.000000 2.500000
0.500000 1.000000 2.500000
0.500000 1.000000 3.500000
0.500000 0.000000 3.500000
0.500000 -1.000000 3.500000

CELLS 4 32
8 6 7 10 9 0 1 4 3
8 7 8 11 10 1 2 5 4
8 12 13 16 17 18 19 22 23
8 13 14 15 16 19 20 21 22

CELL_TYPES 4
12
12
12
12
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# vtk DataFile Version 3.0
Hexahedral element example
ASCII
DATASET UNSTRUCTURED_GRID

POINTS 26 float
1.000000 -1.000000 0.000000
1.000000 0.000000 0.000000
1.000000 1.000000 0.000000
1.000000 1.000000 1.000000
1.000000 0.000000 1.000000
1.000000 -1.000000 1.000000
0.000000 -1.000000 0.000000
0.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 1.000000 1.000000
0.000000 0.000000 1.000000
0.000000 -1.000000 1.000000
-1.000000 -1.000000 0.000000
-1.000000 0.000000 0.000000
-1.000000 1.000000 0.000000
-1.000000 1.000000 1.000000
-1.000000 0.000000 1.000000
-1.000000 -1.000000 1.000000
-0.250000 -0.250000 0.500000
-0.250000 0.250000 0.500000
-0.250000 0.250000 1.500000
-0.250000 -0.250000 1.500000
0.250000 -0.250000 0.500000
0.250000 0.250000 0.500000
0.250000 0.250000 1.500000
0.250000 -0.250000 1.500000

CELLS 5 40
8 6 7 10 11 0 1 4 5
8 7 8 9 10 1 2 3 4
8 12 13 16 17 6 7 10 11
8 13 14 15 16 7 8 9 10
8 18 19 20 21 22 23 24 25

CELL_TYPES 5
12
12
12
12
12
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# vtk DataFile Version 3.0
Hexahedral element example
ASCII
DATASET UNSTRUCTURED_GRID

POINTS 26 float
1.000000 -1.000000 0.000000
1.000000 0.000000 0.000000
1.000000 1.000000 0.000000
1.000000 1.000000 1.000000
1.000000 0.000000 1.000000
1.000000 -1.000000 1.000000
0.000000 -1.000000 0.000000
0.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 1.000000 1.000000
0.000000 0.000000 1.000000
0.000000 -1.000000 1.000000
-1.000000 -1.000000 0.000000
-1.000000 0.000000 0.000000
-1.000000 1.000000 0.000000
-1.000000 1.000000 1.000000
-1.000000 0.000000 1.000000
-1.000000 -1.000000 1.000000
-0.250000 -0.250000 1.000010
-0.250000 0.250000 1.000010
-0.250000 0.250000 1.500000
-0.250000 -0.250000 1.500000
0.250000 -0.250000 1.000010
0.250000 0.250000 1.000010
0.250000 0.250000 1.500000
0.250000 -0.250000 1.500000

CELLS 5 40
8 6 7 10 11 0 1 4 5
8 7 8 9 10 1 2 3 4
8 12 13 16 17 6 7 10 11
8 13 14 15 16 7 8 9 10
8 18 19 20 21 22 23 24 25

CELL_TYPES 5
12
12
12
12
12
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# vtk DataFile Version 3.0
Hexahedral element example
ASCII
DATASET UNSTRUCTURED_GRID

POINTS 20 float
-0.500000 -2.000000 1.000000
-0.500000 0.000000 2.000000
-0.500000 2.000000 1.000000
-0.500000 -2.000000 0.000000
-0.500000 0.000000 1.000000
-0.500000 2.000000 0.000000
0.500000 -2.000000 1.000000
0.500000 0.000000 2.000000
0.500000 2.000000 1.000000
0.500000 -2.000000 0.000000
0.500000 0.000000 1.000000
0.500000 2.000000 0.000000
0.000000 1.000000 1.600000
0.000000 2.000000 1.600000
0.000000 2.000000 2.850000
0.000000 1.000000 2.850000
0.450000 1.000000 1.600000
0.450000 2.000000 1.600000
0.450000 2.000000 2.850000
0.450000 1.000000 2.850000

CELLS 3 24
8 6 7 10 9 0 1 4 3
8 7 8 11 10 1 2 5 4
8 12 13 14 15 16 17 18 19

CELL_TYPES 3
12
12
12
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# vtk DataFile Version 3.0
Hexahedral element example
ASCII
DATASET UNSTRUCTURED_GRID

POINTS 20 float
-0.500000 -2.000000 1.000000
-0.500000 0.000000 2.000000
-0.500000 2.000000 1.000000
-0.500000 -2.000000 0.000000
-0.500000 0.000000 0.000000
-0.500000 2.000000 0.000000
0.500000 -2.000000 1.000000
0.500000 0.000000 2.000000
0.500000 2.000000 1.000000
0.500000 -2.000000 0.000000
0.500000 0.000000 0.000000
0.500000 2.000000 0.000000
-0.250000 0.000000 2.500000
-0.250000 1.000000 2.500000
-0.250000 1.000000 3.500000
-0.250000 0.000000 3.500000
0.250000 0.000000 2.500000
0.250000 1.000000 2.500000
0.250000 1.000000 3.500000
0.250000 0.000000 3.500000

CELLS 3 24
8 6 7 10 9 0 1 4 3
8 7 8 11 10 1 2 5 4
8 12 13 14 15 16 17 18 19

CELL_TYPES 3
12
12
12
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dynamic_options:

mesh_options:
source: file
file_path: ./standard_inputs/meshes/sie_expansion_contact.geo
file_path: ./standard_inputs/meshes/sie_expansion_contact.vtk
num_dims: 3

#mesh_options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dynamic_options:

mesh_options:
source: file
file_path: ./standard_inputs/meshes/slanted_bounce_contact.geo
file_path: ./standard_inputs/meshes/slanted_bounce_contact.vtk
num_dims: 3

#mesh_options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dynamic_options:

mesh_options:
source: file
file_path: ./standard_inputs/meshes/slanted_impact_contact.geo
file_path: ./standard_inputs/meshes/slanted_impact_contact.vtk
num_dims: 3

#mesh_options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dynamic_options:

mesh_options:
source: file
file_path: ./standard_inputs/meshes/preload.geo
file_path: ./standard_inputs/meshes/preload.vtk
num_dims: 3

#mesh_options:
Expand Down
10 changes: 9 additions & 1 deletion single-node-refactor/regression_tests/test_refactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@
solvers = ["Fierro"]

# Add names of each test
# tests = ["TaylorAnvil", "TaylorAnvil_rz", "Compaction", "Compaction_rz", \
# "Sedov", "Sod_X", "Sod_Y", "Sod_Z", "Sedov_Erosion", \
# "Sedov_Read_Ensight", "Sedov_rz_polar", "Abaqus_read", \
# "Pressure_bc_box","vtu_read","SGTM_cooling_cube", \
# "lin_vol_frac_two_mat", "Bending-3D-plate", "Vel_bc_box", \
# "slanted_bounce_contact", "slanted_impact_contact", \
# "sie_expansion_contact", "confined_preload", "unconfined_preload", \
# "edge_flat_contact"]
tests = ["TaylorAnvil", "TaylorAnvil_rz", "Compaction", "Compaction_rz", \
"Sedov", "Sod_X", "Sod_Y", "Sod_Z", "Sedov_Erosion", \
"Sedov_Read_Ensight", "Sedov_rz_polar", "Abaqus_read", \
"Sedov_rz_polar", \
"Pressure_bc_box","vtu_read","SGTM_cooling_cube", \
"lin_vol_frac_two_mat", "Bending-3D-plate", "Vel_bc_box", \
"slanted_bounce_contact", "slanted_impact_contact", \
Expand Down
1 change: 0 additions & 1 deletion single-node-refactor/scripts/build-fierro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ if [ "$build_action" = "full-app" ]; then
elif [ "$trilinos" = "enabled" ]; then
source trilinos-install.sh ${kokkos_build_type} ${intel_mkl} ${debug}
fi
source matar-install.sh ${kokkos_build_type} ${debug} ${trilinos}
source cmake_build.sh ${solver} ${debug} ${trilinos}
elif [ "$build_action" = "install-kokkos" ]; then
source kokkos-install.sh ${kokkos_build_type}
Expand Down
3 changes: 1 addition & 2 deletions single-node-refactor/scripts/cmake_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ if [ "$trilinos" = "enabled" ]; then
Trilinos_DIR=${TRILINOS_INSTALL_DIR}/lib/cmake/Trilinos
fi
cmake_options+=(
-D CMAKE_PREFIX_PATH="${MATAR_INSTALL_DIR}"
-D Trilinos_DIR="$Trilinos_DIR"
-D FIERRO_ENABLE_TRILINOS=ON
)
Expand Down Expand Up @@ -49,6 +48,6 @@ echo "CMake Options: ${cmake_options[@]}"
cmake "${cmake_options[@]}" -B "${SGH_BUILD_DIR}" -S "${SGH_BASE_DIR}"

# Build SGH
make -C "${SGH_BUILD_DIR}" -j${SGH_BUILD_CORES}
make -C "${SGH_BUILD_DIR}" -j${FIERRO_BUILD_CORES}

cd $basedir
Loading