Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pcms/create_field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace pcms

std::unique_ptr<FieldLayout> CreateLagrangeLayout(
Omega_h::Mesh& mesh, int order, int num_components,
CoordinateSystem coordinate_system)
CoordinateSystem coordinate_system, std::string global_id_name)
{

std::array<int, 4> nodes_per_dim;
Expand All @@ -25,8 +25,8 @@ std::unique_ptr<FieldLayout> CreateLagrangeLayout(
default: throw std::runtime_error("Unimplemented order");
}

return std::make_unique<OmegaHFieldLayout>(mesh, nodes_per_dim,
num_components, coordinate_system);
return std::make_unique<OmegaHFieldLayout>(
mesh, nodes_per_dim, num_components, coordinate_system, global_id_name);
}

template <>
Expand Down
2 changes: 1 addition & 1 deletion src/pcms/create_field.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace pcms
{
std::unique_ptr<FieldLayout> CreateLagrangeLayout(
Omega_h::Mesh& mesh, int order, int num_components,
CoordinateSystem coordinate_system);
CoordinateSystem coordinate_system, std::string global_id_name = "global");

/**
* \brief Create a binary field on a uniform grid indicating inside/outside mesh
Expand Down