From 01b76e2658a9be1dabe16fb1b14b69b4cbc852c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Fri, 15 Dec 2023 14:23:55 +0100 Subject: [PATCH] Order variables the same as in constructor init list. --- opm/simulators/utils/DamarisVar.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/simulators/utils/DamarisVar.hpp b/opm/simulators/utils/DamarisVar.hpp index 19f6e17a7..708ce8151 100644 --- a/opm/simulators/utils/DamarisVar.hpp +++ b/opm/simulators/utils/DamarisVar.hpp @@ -170,7 +170,6 @@ namespace DamarisOutput //!< describe the size of the variables data array std::vector positions_; //!< The offsets into the array that the data in the Variable //!< starts from for this rank. - int rank_; //!< Rank of process - used for error reporting. bool parameters_set_; //!< set to true after SetDamarisParameter() is call to //!< ensure the variable has correct size for memory //!< allocation in SetPointersToDamarisShmem() @@ -178,6 +177,7 @@ namespace DamarisOutput //!< variable depends on (via it's Layout) std::string variable_name_; //!< Reference string to the XML attribute name of //!< the variable. + int rank_; //!< Rank of process - used for error reporting. int dam_err_; //!< Set to != DAMARIS_OK if a Damaris error was returned by a //!< Damaris API function call bool has_error_; @@ -688,4 +688,4 @@ namespace DamarisOutput } // namespace Opm -#endif \ No newline at end of file +#endif