Skip to content

Commit

Permalink
Merge pull request #6039 from gassmoeller/avoid_c_arrays
Browse files Browse the repository at this point in the history
Avoid a C-style array
  • Loading branch information
tjhei authored Sep 17, 2024
2 parents b7a0406 + ae7fc83 commit 4470cea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/aspect/introspection.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ namespace aspect
*/
struct ComponentIndices
{
unsigned int velocities[dim];
unsigned int pressure;
unsigned int temperature;
std::vector<unsigned int> compositional_fields;
std::array<unsigned int, dim> velocities;
unsigned int pressure;
unsigned int temperature;
std::vector<unsigned int> compositional_fields;
};
/**
* A variable that enumerates the vector components of the finite
Expand Down

0 comments on commit 4470cea

Please sign in to comment.