Skip to content

Commit

Permalink
fix namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrdar committed Sep 5, 2023
1 parent 225a0f4 commit 2f0a600
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/atlas/field/detail/MultiFieldInterface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace atlas {
namespace field {

extern "C" {
MultiFieldImpl* atlas__MultiField__create(eckit::Configuration* config) {
::atlas::field::MultiFieldImpl* atlas__MultiField__create(eckit::Configuration* config) {
ATLAS_ASSERT(config != nullptr);
long nproma = config->getLong("nproma");
long nlev = config->getLong("nlev");
Expand Down Expand Up @@ -59,7 +59,7 @@ MultiFieldImpl* atlas__MultiField__create(eckit::Configuration* config) {
}
auto multiarray_shape = array::make_shape(nblk, nfld, nlev, nproma);

MultiFieldImpl* multifield = new MultiFieldImpl{array::ArraySpec{datatype, multiarray_shape}};
::atlas::field::MultiFieldImpl* multifield = new ::atlas::field::MultiFieldImpl{array::ArraySpec{datatype, multiarray_shape}};
auto& multiarray = multifield->array();

size_t multiarray_field_idx = 0;
Expand Down Expand Up @@ -119,10 +119,9 @@ MultiFieldImpl* atlas__MultiField__create(eckit::Configuration* config) {
return multifield;
}

void atlas__MultiField__delete(MultiFieldImpl* This) {
void atlas__MultiField__delete(::atlas::field::MultiFieldImpl* This) {
delete This;
}

}

// ------------------------------------------------------------------
Expand Down

0 comments on commit 2f0a600

Please sign in to comment.