Skip to content

Commit

Permalink
Pass data_type to other subfield impl
Browse files Browse the repository at this point in the history
  • Loading branch information
tcclevenger committed Oct 4, 2024
1 parent e5e8a10 commit a1ca668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/eamxx/src/share/field/field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ Field Field::subfield(const std::string& sf_name,
auto sf_layout = lt.clone();
sf_layout.reset_dim(idim, index_end - index_beg);
// Create identifier for subfield
FieldIdentifier sf_id(sf_name, sf_layout, sf_units, id.get_grid_name());
FieldIdentifier sf_id(sf_name, sf_layout, sf_units, id.get_grid_name(), id.data_type());

// Create empty subfield, then set header and views
// Note: we can access protected members, since it's the same type
Expand Down

0 comments on commit a1ca668

Please sign in to comment.