Skip to content

Commit fd84384

Browse files
committed
EAMxx: switch check in IO avg count to match current master
Instead of filling where count<threshold we fill where count<=threshold Change which version of compute_mask we do ETI for.
1 parent ce517cb commit fd84384

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

components/eamxx/src/share/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ list (APPEND SHARE_SRC
8282
field/eti/field_eti_update_impl_int_host.cpp
8383
field/eti/field_eti_update_int_device.cpp
8484
field/eti/field_eti_update_int_host.cpp
85-
field/eti/field_utils_eti_compute_mask_lt_int.cpp
86-
field/eti/field_utils_eti_compute_mask_lt_float.cpp
87-
field/eti/field_utils_eti_compute_mask_lt_double.cpp
85+
field/eti/field_utils_eti_compute_mask_le_int.cpp
86+
field/eti/field_utils_eti_compute_mask_le_float.cpp
87+
field/eti/field_utils_eti_compute_mask_le_double.cpp
8888
field/eti/field_utils_eti_compute_mask_ne_int.cpp
8989
field/eti/field_utils_eti_compute_mask_ne_float.cpp
9090
field/eti/field_utils_eti_compute_mask_ne_double.cpp

components/eamxx/src/share/field/eti/field_utils_eti_compute_mask_lt_double.cpp renamed to components/eamxx/src/share/field/eti/field_utils_eti_compute_mask_le_double.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace scream {
44
namespace impl {
55

6-
template void compute_mask<Comparison::LT,double>(const Field&, double, Field&);
6+
template void compute_mask<Comparison::LE,double>(const Field&, double, Field&);
77

88
} // namespace impl
99
} // namespace scream

components/eamxx/src/share/field/eti/field_utils_eti_compute_mask_lt_float.cpp renamed to components/eamxx/src/share/field/eti/field_utils_eti_compute_mask_le_float.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace scream {
44
namespace impl {
55

6-
template void compute_mask<Comparison::LT,float>(const Field&, float, Field&);
6+
template void compute_mask<Comparison::LE,float>(const Field&, float, Field&);
77

88
} // namespace impl
99
} // namespace scream

components/eamxx/src/share/field/eti/field_utils_eti_compute_mask_lt_int.cpp renamed to components/eamxx/src/share/field/eti/field_utils_eti_compute_mask_le_int.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace scream {
44
namespace impl {
55

6-
template void compute_mask<Comparison::LT,int>(const Field&, int, Field&);
6+
template void compute_mask<Comparison::LE,int>(const Field&, int, Field&);
77

88
} // namespace impl
99
} // namespace scream

components/eamxx/src/share/field/field_utils_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ extern template void impl::compute_mask<C, double>(const Field&, const double, F
12051205

12061206
// Only these two, since they are the only ones used so far (in IO)
12071207
EAMXX_FIELD_UTILS_ETI_DECL_COMPUTE_MASK(Comparison::NE);
1208-
EAMXX_FIELD_UTILS_ETI_DECL_COMPUTE_MASK(Comparison::LT);
1208+
EAMXX_FIELD_UTILS_ETI_DECL_COMPUTE_MASK(Comparison::LE);
12091209

12101210
} // namespace impl
12111211

components/eamxx/src/share/io/scorpio_output.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ run (const std::string& filename,
443443
int min_count = static_cast<int>(std::ceil(m_avg_coeff_threshold*nsteps_since_last_output));
444444

445445
// Recycle mask to find where count<thresh
446-
compute_mask<Comparison::LT>(count,min_count,mask);
446+
compute_mask<Comparison::LE>(count,min_count,mask);
447447

448448
// Later, we divide fields by count. By setting count=1 where count<thresholt,
449449
// we can later do

0 commit comments

Comments
 (0)