Skip to content

Commit 6a52b46

Browse files
committed
fix typo in conditional statement in IO
1 parent 6f6b878 commit 6a52b46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,11 @@ void AtmosphereOutput::init()
347347
// Initialize a helper_field for each unique layout. This can be used for operations
348348
// such as writing transposed output.
349349
if (m_transpose) {
350+
const auto helper_layout = layout.transpose();
350351
const std::string helper_name = "transposed_"+helper_layout.to_string();
351-
if (m_helper_fields.find(helper_name == m_helper_fields.end()) {
352+
if (m_helper_fields.find(helper_name) == m_helper_fields.end()) {
352353
// We can add a new helper field for this layout
353354
using namespace ekat::units;
354-
const auto helper_layout = layout.transpose();
355355
FieldIdentifier fid_helper(helper_name,helper_layout,Units::invalid(),fid.get_grid_name());
356356
Field helper(fid_helper);
357357
helper.get_header().get_alloc_properties().request_allocation();

0 commit comments

Comments
 (0)