Skip to content

Commit bb6ce33

Browse files
committed
EPU: Handle case where no elements, but add_processor_id specified
1 parent 3296f3d commit bb6ce33

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/seacas/applications/epu/EP_SystemInterface.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ namespace Excn {
5656

5757
bool add_nodal_communication_map() const { return addNodalCommunicationMap_; }
5858
bool add_processor_id_field() const { return addProcessorIdField_; }
59+
void set_processor_id_field(bool yes_no) { addProcessorIdField_ = yes_no; }
5960
bool add_processor_id_map() const { return addProcessorIdMap_; }
6061
bool sum_shared_nodes() const { return sumSharedNodes_; }
6162
bool use_netcdf4() const { return useNetcdf4_; }

packages/seacas/applications/epu/EP_Version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright(C) 1999-2024 National Technology & Engineering Solutions
2+
* Copyright(C) 1999-2025 National Technology & Engineering Solutions
33
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
44
* NTESS, the U.S. Government retains certain rights in this software.
55
*
@@ -11,6 +11,6 @@
1111

1212
static const std::array<std::string, 3> qainfo{
1313
"epu -- E Pluribus Unum",
14-
"7.00",
15-
"2024/12/10",
14+
"7.01",
15+
"2024/03/13",
1616
};

packages/seacas/applications/epu/epu.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,9 @@ int epu(SystemInterface &interFace, int start_part, int part_count, int cycle)
11161116
Variables edgeblock_vars(Excn::ObjectType::EDBLK);
11171117
Variables faceblock_vars(Excn::ObjectType::FABLK);
11181118

1119+
if (glob_blocks.empty()) {
1120+
interFace.set_processor_id_field(false);
1121+
}
11191122
element_vars.addProcessorId = interFace.add_processor_id_field();
11201123

11211124
{

0 commit comments

Comments
 (0)