Skip to content

Commit

Permalink
Use mesh dimension in the output of getMeshVertexIDsAndCoordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Feb 6, 2024
1 parent b71072b commit 1e4ff63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion +precice/@Participant/private/preciceGateway.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class MexFunction: public matlab::mex::Function {
std::vector <double> positions(size[0]*dim);
interface->getMeshVertexIDsAndCoordinates(meshName,ids,positions);
outputs[0] = factory.createArray<int32_t>({size[0]}, ids.data(), ids.data()+ids.size());
outputs[1] = factory.createArray<double>({size[0], 3}, positions.data(), positions.data()+positions.size());
outputs[1] = factory.createArray<double>({size[0], dim}, positions.data(), positions.data()+positions.size());
break;
}

Expand Down

0 comments on commit 1e4ff63

Please sign in to comment.