Skip to content

Commit f5fe762

Browse files
authored
Release 1.1.1 (#15)
* Enable interface reconstruction in RZ geometry. * Propagate recent fixes from R3D. * Improve numeric tolerance robustness.
1 parent a475ae4 commit f5fe762

39 files changed

+970
-190
lines changed

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cmake_policy(SET CMP0074 NEW) # Don't ignore Pkg_ROOT variables
2727

2828
set(TANGRAM_VERSION_MAJOR 1)
2929
set(TANGRAM_VERSION_MINOR 0)
30-
set(TANGRAM_VERSION_PATCH 5.pub)
30+
set(TANGRAM_VERSION_PATCH 4)
3131

3232

3333
# Top level target
@@ -133,7 +133,14 @@ if (ENABLE_UNIT_TESTS)
133133

134134
endif ()
135135

136+
#-----------------------------------------------------------------------------
137+
# Allow to set TANGRAM_DEBUG from the build script
138+
#-----------------------------------------------------------------------------
136139

140+
option(TANGRAM_DEBUG "Additional checks will be performed and info will be printed" OFF)
141+
if (TANGRAM_DEBUG)
142+
add_definitions(-DTANGRAM_DEBUG)
143+
endif()
137144

138145
#-----------------------------------------------------------------------------
139146
# Recurse down the source directories building up dependencies

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
This software is open source software available under the BSD-3 License.
22

3-
Copyright (c) 2020, Triad National Security, LLC.
3+
Copyright (c) 2017, Triad National Security, LLC.
44
All rights reserved.
55

66
This program was produced under U.S. Government contract 89233218CNA000001 for

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ meshes with their materials data. Interface reconstruction algorithms
1111
can be customized (e.g. VOF, MOF) and, through the wrappers, take
1212
advantage of hybrid parallelism (MPI+X).
1313

14-
Release process followed in accordance to memo number CCS-DO-344.
15-
1614
## Getting Started
1715

1816
To obtain a copy of Tangram and its submodules from GitHub, clone
@@ -142,7 +140,7 @@ export MODULEPATH=""
142140
. /opt/local/packages/Modules/default/init/sh
143141
module load intel/18.0.1 openmpi/2.1.2 cmake/3.14.0
144142
XMOF2D_INSTALL_PREFIX=/usr/local/codes/ngc/private/xmof2d/0.9.5-intel-18.0.1
145-
WONTON_INSTALL_PREFIX=/usr/local/codes/ngc/private/wonton/1.2.6-intel-18.0.1-openmpi-2.1.2
143+
WONTON_INSTALL_PREFIX=/usr/local/codes/ngc/private/wonton/dev-intel-18.0.1-openmpi-2.1.2
146144
mkdir build
147145
cd build
148146
cmake \
@@ -159,7 +157,7 @@ make -j2
159157
ctest --output-on-failure
160158
```
161159

162-
## Snow
160+
## Varan
163161

164162
Execute the following from the Tangram root directory:
165163

@@ -169,7 +167,7 @@ Execute the following from the Tangram root directory:
169167

170168
module load intel/18.0.5 openmpi/2.1.2 cmake/3.14.0
171169
XMOF2D_INSTALL_PREFIX=/usr/projects/ngc/private/xmof2d/0.9.5-intel-18.0.5
172-
WONTON_INSTALL_PREFIX=/usr/projects/ngc/private/wonton/1.2.6-intel-18.0.5-openmpi-2.1.2
170+
WONTON_INSTALL_PREFIX=/usr/projects/ngc/private/wonton/dev-intel-18.0.5-openmpi-2.1.2
173171
mkdir build
174172
cd build
175173
cmake \

app/test_lvira/test_lvira_2d.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,13 @@ int main(int argc, char** argv) {
153153
std::vector< std::vector< std::vector<r2d_poly> > > reference_mat_polys;
154154

155155
#if defined(WONTON_ENABLE_Jali) && defined(WONTON_ENABLE_MPI)
156-
get_material_moments<Wonton::Jali_Mesh_Wrapper>(mesh_wrapper, material_interfaces,
156+
get_material_moments<Wonton::Jali_Mesh_Wrapper,Wonton::CartesianCoordinates>(
157+
mesh_wrapper, material_interfaces,
157158
mesh_materials, cell_num_mats, cell_mat_ids, cell_mat_volfracs, cell_mat_centroids,
158159
vol_tol, dst_tol, decompose_cells, &reference_mat_polys, reverse_mat_order);
159160
#else
160-
get_material_moments<Wonton::Simple_Mesh_Wrapper>(mesh_wrapper, material_interfaces,
161+
get_material_moments<Wonton::Simple_Mesh_Wrapper,Wonton::CartesianCoordinates>(
162+
mesh_wrapper, material_interfaces,
161163
mesh_materials, cell_num_mats, cell_mat_ids, cell_mat_volfracs, cell_mat_centroids,
162164
vol_tol, dst_tol, decompose_cells, &reference_mat_polys, reverse_mat_order);
163165
#endif
@@ -245,7 +247,8 @@ int main(int argc, char** argv) {
245247
cell_ref_mat_vols[icmat] *= cell_volume;
246248

247249
std::vector<double> cell_mat_sym_diff_vol;
248-
get_mat_sym_diff_vol(reference_mat_polys[icell], cell_ref_mat_ids,
250+
get_mat_sym_diff_vol<Wonton::CartesianCoordinates>(
251+
reference_mat_polys[icell], cell_ref_mat_ids,
249252
cell_ref_mat_vols, cellmatpoly_list[icell],
250253
cell_mat_sym_diff_vol, !decompose_cells);
251254

app/test_lvira/test_lvira_3d.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,13 @@ int main(int argc, char** argv) {
155155
std::vector< std::vector< std::vector<r3d_poly> > > reference_mat_polys;
156156

157157
#if defined(WONTON_ENABLE_Jali) && defined(WONTON_ENABLE_MPI)
158-
get_material_moments<Wonton::Jali_Mesh_Wrapper>(mesh_wrapper, material_interfaces,
158+
get_material_moments<Wonton::Jali_Mesh_Wrapper, Wonton::CartesianCoordinates>(
159+
mesh_wrapper, material_interfaces,
159160
mesh_materials, cell_num_mats, cell_mat_ids, cell_mat_volfracs, cell_mat_centroids,
160161
vol_tol, dst_tol, decompose_cells, &reference_mat_polys, reverse_mat_order);
161162
#else
162-
get_material_moments<Wonton::Simple_Mesh_Wrapper>(mesh_wrapper, material_interfaces,
163+
get_material_moments<Wonton::Simple_Mesh_Wrapper, Wonton::CartesianCoordinates>(
164+
mesh_wrapper, material_interfaces,
163165
mesh_materials, cell_num_mats, cell_mat_ids, cell_mat_volfracs, cell_mat_centroids,
164166
vol_tol, dst_tol, decompose_cells, &reference_mat_polys, reverse_mat_order);
165167
#endif

app/test_mof/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ target_link_libraries(test_single_cell_3d tangram)
2222
add_executable(test_mof_2d test_mof_2d.cc)
2323
target_link_libraries(test_mof_2d tangram)
2424

25+
#-------------------------------------------------------------------------------
26+
# test_mof_2d_rz - uses 2D mesh from SimpleMesh, RZ coordinate system
27+
#-------------------------------------------------------------------------------
28+
add_executable(test_mof_2d_rz test_mof_2d_rz.cc)
29+
target_link_libraries(test_mof_2d_rz tangram)
30+
2531
#-------------------------------------------------------------------------------
2632
# Testing
2733
#-------------------------------------------------------------------------------

app/test_mof/test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ endmacro(ADD_MOF_2D_TEST)
7272
if (WONTON_ENABLE_Jali)
7373
ADD_MOF_2D_TEST(2)
7474
file(COPY voronoi124.exo DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
75+
ADD_MOF_2D_TEST(1_rz)
7576
else(WONTON_ENABLE_Jali)
7677
ADD_MOF_2D_TEST(0)
7778
ADD_MOF_2D_TEST(1)
79+
ADD_MOF_2D_TEST(1_rz)
7880
endif(WONTON_ENABLE_Jali)
7981

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
505 1.88000945908630736e-03
2+
515 5.98162700187310648e-04
3+
525 5.79192820814975959e-04
4+
535 5.57228567701686115e-04
5+
545 5.43774126782504107e-04
6+
556 6.19981467578920378e-04
7+
566 7.02727304754922899e-04
8+
576 6.83395026697168617e-04
9+
586 6.61516271301973088e-04
10+
596 2.51687235971954394e-03
11+
56 6.19981467578908235e-04
12+
66 7.02727304754995757e-04
13+
76 6.83395026697088820e-04
14+
86 6.61516271301881148e-04
15+
96 2.51687235971973997e-03
16+
305 1.88000945908626399e-03
17+
315 5.98162700187318888e-04
18+
325 5.79192820815074838e-04
19+
335 5.57228567701767430e-04
20+
345 5.43774126782678446e-04

app/test_mof/test/mof_2d_test1_rz.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
: <<'END'
3+
This file is part of the Ristra tangram project.
4+
Please see the license file at the root of this repository, or at:
5+
https://github.com/laristra/tangram/blob/master/LICENSE
6+
END
7+
8+
9+
# Exit on error
10+
set -e
11+
# Echo each command
12+
set -x
13+
14+
# 2D MOF interface reconstruction on a regular 10x10 RZ grid
15+
# with two planar material interfaces forming a tilted T-junction.
16+
# Uses SimpleMesh.
17+
${RUN_COMMAND} ${TESTAPPDIR}/test_mof_2d_rz 1 10 10 1
18+
19+
# Compare the values for the field
20+
${CMPAPPDIR}/apptest_cmp cell_sym_diff_gold1_rz_2d.txt cell_sym_diff_2d_simple_mesh_decomposed.txt 1e-11

app/test_mof/test_mof_2d.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,13 @@ int main(int argc, char** argv) {
151151
std::vector< std::vector< std::vector<r2d_poly> > > reference_mat_polys;
152152

153153
#if defined(WONTON_ENABLE_Jali) && defined(WONTON_ENABLE_MPI)
154-
get_material_moments<Wonton::Jali_Mesh_Wrapper>(mesh_wrapper, material_interfaces,
154+
get_material_moments<Wonton::Jali_Mesh_Wrapper, Wonton::CartesianCoordinates>(
155+
mesh_wrapper, material_interfaces,
155156
mesh_materials, cell_num_mats, cell_mat_ids, cell_mat_volfracs, cell_mat_centroids,
156157
vol_tol, dst_tol, decompose_cells, &reference_mat_polys);
157158
#else
158-
get_material_moments<Wonton::Simple_Mesh_Wrapper>(mesh_wrapper, material_interfaces,
159+
get_material_moments<Wonton::Simple_Mesh_Wrapper, Wonton::CartesianCoordinates>(
160+
mesh_wrapper, material_interfaces,
159161
mesh_materials, cell_num_mats, cell_mat_ids, cell_mat_volfracs, cell_mat_centroids,
160162
vol_tol, dst_tol, decompose_cells, &reference_mat_polys);
161163
#endif
@@ -243,7 +245,8 @@ int main(int argc, char** argv) {
243245
cell_ref_mat_vols[icmat] *= cell_volume;
244246

245247
std::vector<double> cell_mat_sym_diff_vol;
246-
get_mat_sym_diff_vol(reference_mat_polys[icell], cell_ref_mat_ids,
248+
get_mat_sym_diff_vol<Wonton::CartesianCoordinates>(
249+
reference_mat_polys[icell], cell_ref_mat_ids,
247250
cell_ref_mat_vols, cellmatpoly_list[icell],
248251
cell_mat_sym_diff_vol, !decompose_cells);
249252

0 commit comments

Comments
 (0)