Skip to content

Commit

Permalink
Windows fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Oct 30, 2024
1 parent 00a014a commit a0236e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ Mesh &Mesh::setUnitDimension(std::map<UnitDimension, double> const &udim)
if (!udim.empty())
{
std::array<double, 7> tmpUnitDimension = this->unitDimension();
auxiliary::fromMapOfUnitDimension(tmpUnitDimension.begin(), udim);
auxiliary::fromMapOfUnitDimension(tmpUnitDimension.data(), udim);
setAttribute("unitDimension", tmpUnitDimension);
}
return *this;
Expand Down Expand Up @@ -336,7 +336,7 @@ unit_representations::AsArrays Mesh::gridUnitDimension() const
// if it is missing, the mesh is interpreted as spatial
std::array<double, 7> spatialMesh;
auxiliary::fromMapOfUnitDimension(
spatialMesh.begin(), {{UnitDimension::L, 1}});
spatialMesh.data(), {{UnitDimension::L, 1}});
auto dim = retrieveMeshDimensionality(*this);
unit_representations::AsArrays res(dim, spatialMesh);
return res;
Expand Down
2 changes: 1 addition & 1 deletion src/UnitDimension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace unit_representations
auto asArray(AsMap const &udim) -> AsArray
{
AsArray res;
auxiliary::fromMapOfUnitDimension(res.begin(), udim);
auxiliary::fromMapOfUnitDimension(res.data(), udim);
return res;
}
auto asMap(AsArray const &array) -> AsMap
Expand Down

0 comments on commit a0236e3

Please sign in to comment.