diff --git a/applications/CHAC_anisotropy/equations.cc b/applications/CHAC_anisotropy/equations.cc index cf26337f..a8a365ca 100644 --- a/applications/CHAC_anisotropy/equations.cc +++ b/applications/CHAC_anisotropy/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/CHAC_anisotropy/postprocess.cc b/applications/CHAC_anisotropy/postprocess.cc index 4042fa6b..9a9b9e3d 100644 --- a/applications/CHAC_anisotropy/postprocess.cc +++ b/applications/CHAC_anisotropy/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/CHAC_anisotropyRegularized/equations.cc b/applications/CHAC_anisotropyRegularized/equations.cc index 34d6efdd..3237df28 100644 --- a/applications/CHAC_anisotropyRegularized/equations.cc +++ b/applications/CHAC_anisotropyRegularized/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/CHAC_anisotropyRegularized/postprocess.cc b/applications/CHAC_anisotropyRegularized/postprocess.cc index 921fc695..769433fa 100644 --- a/applications/CHAC_anisotropyRegularized/postprocess.cc +++ b/applications/CHAC_anisotropyRegularized/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/CHAC_performance_test/equations.cc b/applications/CHAC_performance_test/equations.cc index d05a7e46..1207100e 100644 --- a/applications/CHAC_performance_test/equations.cc +++ b/applications/CHAC_performance_test/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/CHAC_performance_test/postprocess.cc b/applications/CHAC_performance_test/postprocess.cc index a2a9ab92..33a4da31 100644 --- a/applications/CHAC_performance_test/postprocess.cc +++ b/applications/CHAC_performance_test/postprocess.cc @@ -9,7 +9,7 @@ // postprocessed quantity over the entire domain. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark1a/equations.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark1a/equations.cc index 2d2595da..205d7388 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark1a/equations.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark1a/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark1a/postprocess.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark1a/postprocess.cc index 041e61e6..cbc7cd89 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark1a/postprocess.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark1a/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark1b/equations.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark1b/equations.cc index 2d2595da..205d7388 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark1b/equations.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark1b/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark1b/postprocess.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark1b/postprocess.cc index 041e61e6..cbc7cd89 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark1b/postprocess.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark1b/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark1c/equations.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark1c/equations.cc index 2d2595da..205d7388 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark1c/equations.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark1c/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark1c/postprocess.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark1c/postprocess.cc index 041e61e6..cbc7cd89 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark1c/postprocess.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark1c/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark2a/equations.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark2a/equations.cc index 6d5c200b..b859670c 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark2a/equations.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark2a/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark2a/postprocess.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark2a/postprocess.cc index bc3c3f83..274fb297 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark2a/postprocess.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark2a/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark3a/equations.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark3a/equations.cc index 37f6b39f..e49caba5 100755 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark3a/equations.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark3a/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "u"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark3a/postprocess.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark3a/postprocess.cc index d2df2a25..5230390b 100755 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark3a/postprocess.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark3a/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 1 set_variable_name(0, "f_tot"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark6a/equations.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark6a/equations.cc index 7e04322c..5578eb06 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark6a/equations.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark6a/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark6a/postprocess.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark6a/postprocess.cc index 7292e9eb..f761890f 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark6a/postprocess.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark6a/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark6b/equations.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark6b/equations.cc index 96beda0e..1f10a131 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark6b/equations.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark6b/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark6b/postprocess.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark6b/postprocess.cc index 7292e9eb..f761890f 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark6b/postprocess.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark6b/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark7a/equations.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark7a/equations.cc index 7292ae76..b231d363 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark7a/equations.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark7a/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "n"); diff --git a/applications/CHiMaD_benchmarks/CHiMaD_benchmark7a/postprocess.cc b/applications/CHiMaD_benchmarks/CHiMaD_benchmark7a/postprocess.cc index 323aee7c..c7d71cdc 100644 --- a/applications/CHiMaD_benchmarks/CHiMaD_benchmark7a/postprocess.cc +++ b/applications/CHiMaD_benchmarks/CHiMaD_benchmark7a/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "error_squared"); diff --git a/applications/MgNd_precipitate_single_Bppp/equations.cc b/applications/MgNd_precipitate_single_Bppp/equations.cc index ebecb287..6f3da989 100644 --- a/applications/MgNd_precipitate_single_Bppp/equations.cc +++ b/applications/MgNd_precipitate_single_Bppp/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/MgNd_precipitate_single_Bppp/postprocess.cc b/applications/MgNd_precipitate_single_Bppp/postprocess.cc index 4e00a269..49ed8b80 100644 --- a/applications/MgNd_precipitate_single_Bppp/postprocess.cc +++ b/applications/MgNd_precipitate_single_Bppp/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/allenCahn/equations.cc b/applications/allenCahn/equations.cc index 9ba53a23..5b09a18c 100644 --- a/applications/allenCahn/equations.cc +++ b/applications/allenCahn/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "n"); diff --git a/applications/allenCahn/postprocess.cc b/applications/allenCahn/postprocess.cc index 9dc68bc2..eecfce5b 100644 --- a/applications/allenCahn/postprocess.cc +++ b/applications/allenCahn/postprocess.cc @@ -9,7 +9,7 @@ // postprocessed quantity over the entire domain. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "mg_n"); diff --git a/applications/allenCahn_conserved/equations.cc b/applications/allenCahn_conserved/equations.cc index 5e8c428f..0391fc2f 100644 --- a/applications/allenCahn_conserved/equations.cc +++ b/applications/allenCahn_conserved/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "n"); diff --git a/applications/allenCahn_conserved/postprocess.cc b/applications/allenCahn_conserved/postprocess.cc index 5b2c7236..cc8796fb 100644 --- a/applications/allenCahn_conserved/postprocess.cc +++ b/applications/allenCahn_conserved/postprocess.cc @@ -9,7 +9,7 @@ // postprocessed quantity over the entire domain. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "mg_n"); diff --git a/applications/alloySolidification/equations.cc b/applications/alloySolidification/equations.cc index 0e2af5ad..a5e5422d 100644 --- a/applications/alloySolidification/equations.cc +++ b/applications/alloySolidification/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "U"); diff --git a/applications/alloySolidification/postprocess.cc b/applications/alloySolidification/postprocess.cc index 4467a101..dd7a2275 100644 --- a/applications/alloySolidification/postprocess.cc +++ b/applications/alloySolidification/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/alloySolidification_uniform/equations.cc b/applications/alloySolidification_uniform/equations.cc index 983c8288..5e7396e8 100644 --- a/applications/alloySolidification_uniform/equations.cc +++ b/applications/alloySolidification_uniform/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "phi"); diff --git a/applications/anisotropyFacet/equations.cc b/applications/anisotropyFacet/equations.cc index 60203f10..29b871a1 100644 --- a/applications/anisotropyFacet/equations.cc +++ b/applications/anisotropyFacet/equations.cc @@ -16,7 +16,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/anisotropyFacet/postprocess.cc b/applications/anisotropyFacet/postprocess.cc index 8a8c60d6..4ccfc2f4 100644 --- a/applications/anisotropyFacet/postprocess.cc +++ b/applications/anisotropyFacet/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/cahnHilliard/equations.cc b/applications/cahnHilliard/equations.cc index 8dbe9cb5..50958e85 100644 --- a/applications/cahnHilliard/equations.cc +++ b/applications/cahnHilliard/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/cahnHilliard/postprocess.cc b/applications/cahnHilliard/postprocess.cc index 031f595c..37de7092 100644 --- a/applications/cahnHilliard/postprocess.cc +++ b/applications/cahnHilliard/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/corrosion/equations.cc b/applications/corrosion/equations.cc index a583208d..34af0a3c 100644 --- a/applications/corrosion/equations.cc +++ b/applications/corrosion/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "n"); diff --git a/applications/corrosion_microgalvanic/equations.cc b/applications/corrosion_microgalvanic/equations.cc index b0b827fd..f987ea62 100644 --- a/applications/corrosion_microgalvanic/equations.cc +++ b/applications/corrosion_microgalvanic/equations.cc @@ -17,7 +17,7 @@ using namespace std; void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Declaring all the model variables as follows: // domain parameter for the electrolyte - psi diff --git a/applications/coupledCahnHilliardAllenCahn/equations.cc b/applications/coupledCahnHilliardAllenCahn/equations.cc index d3e5554c..75267259 100644 --- a/applications/coupledCahnHilliardAllenCahn/equations.cc +++ b/applications/coupledCahnHilliardAllenCahn/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/coupledCahnHilliardAllenCahn/postprocess.cc b/applications/coupledCahnHilliardAllenCahn/postprocess.cc index 73ec2dab..d7662054 100644 --- a/applications/coupledCahnHilliardAllenCahn/postprocess.cc +++ b/applications/coupledCahnHilliardAllenCahn/postprocess.cc @@ -9,7 +9,7 @@ // postprocessed quantity over the entire domain. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/dendriticSolidification/equations.cc b/applications/dendriticSolidification/equations.cc index b4473195..cf90c9f9 100644 --- a/applications/dendriticSolidification/equations.cc +++ b/applications/dendriticSolidification/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "u"); diff --git a/applications/eshelbyInclusion/equations.cc b/applications/eshelbyInclusion/equations.cc index a93ea5cf..2b0268ef 100644 --- a/applications/eshelbyInclusion/equations.cc +++ b/applications/eshelbyInclusion/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "u"); diff --git a/applications/fickianDiffusion/equations.cc b/applications/fickianDiffusion/equations.cc index 95e85955..8b37e5d7 100644 --- a/applications/fickianDiffusion/equations.cc +++ b/applications/fickianDiffusion/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/grainGrowth/equations.cc b/applications/grainGrowth/equations.cc index 0356c47f..9a3f41fa 100644 --- a/applications/grainGrowth/equations.cc +++ b/applications/grainGrowth/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { for (unsigned int var_index = 0; var_index < 6; var_index++) { diff --git a/applications/grainGrowth/postprocess.cc b/applications/grainGrowth/postprocess.cc index 1db32fc5..4c7bc605 100644 --- a/applications/grainGrowth/postprocess.cc +++ b/applications/grainGrowth/postprocess.cc @@ -9,7 +9,7 @@ // postprocessed quantity over the entire domain. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "feature_ids"); diff --git a/applications/grainGrowth_dream3d/equations.cc b/applications/grainGrowth_dream3d/equations.cc index 3fa22f81..492d05f8 100644 --- a/applications/grainGrowth_dream3d/equations.cc +++ b/applications/grainGrowth_dream3d/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // For the input file 'parameters.in' for (unsigned int var_index = 0; var_index < 8; var_index++) diff --git a/applications/grainGrowth_dream3d/postprocess.cc b/applications/grainGrowth_dream3d/postprocess.cc index 57996e9e..1bf9dbc4 100644 --- a/applications/grainGrowth_dream3d/postprocess.cc +++ b/applications/grainGrowth_dream3d/postprocess.cc @@ -9,7 +9,7 @@ // postprocessed quantity over the entire domain. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "feature_ids"); diff --git a/applications/main.cc b/applications/main.cc index cad7b700..f5526507 100644 --- a/applications/main.cc +++ b/applications/main.cc @@ -2,6 +2,7 @@ #include "customPDE.h" #include "ICs_and_BCs.cc" +#include "core/variableAttributes.h" #include "equations.cc" #include @@ -13,7 +14,7 @@ # include "postprocess.cc" #else void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() {} #endif @@ -62,10 +63,11 @@ main(int argc, char **argv) // postprocessing variables there are, how many sets of elastic constants // there are, and how many user-defined constants there are. - const variableAttributeLoader attribute_loader; - const AttributesList var_attributes = attribute_loader.get_var_attributes(); - const AttributesList pp_attributes = attribute_loader.get_pp_attributes(); - inputFileReader input_file_reader(parameters_filename, + customAttributeLoader attribute_loader; + attribute_loader.init_variable_attributes(); + AttributesList var_attributes = attribute_loader.get_var_attributes(); + AttributesList pp_attributes = attribute_loader.get_pp_attributes(); + inputFileReader input_file_reader(parameters_filename, var_attributes, pp_attributes); diff --git a/applications/mechanics/equations.cc b/applications/mechanics/equations.cc index 287c2740..02fb5437 100644 --- a/applications/mechanics/equations.cc +++ b/applications/mechanics/equations.cc @@ -5,7 +5,7 @@ // Set the attributes of the primary field variables // ================================================================================= void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 2 set_variable_name(0, "u"); diff --git a/applications/nucleationModel/equations.cc b/applications/nucleationModel/equations.cc index d74c6e3a..c5056770 100644 --- a/applications/nucleationModel/equations.cc +++ b/applications/nucleationModel/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/nucleationModel_preferential/equations.cc b/applications/nucleationModel_preferential/equations.cc index 637dddf4..3230ca1c 100644 --- a/applications/nucleationModel_preferential/equations.cc +++ b/applications/nucleationModel_preferential/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/precipitateEvolution/equations.cc b/applications/precipitateEvolution/equations.cc index 2277cdf5..6c0cc483 100644 --- a/applications/precipitateEvolution/equations.cc +++ b/applications/precipitateEvolution/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/precipitateEvolution/postprocess.cc b/applications/precipitateEvolution/postprocess.cc index 7c1950d6..c20ffbfd 100644 --- a/applications/precipitateEvolution/postprocess.cc +++ b/applications/precipitateEvolution/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/precipitateEvolution_pfunction/equations.cc b/applications/precipitateEvolution_pfunction/equations.cc index edaa6603..baeb2de1 100644 --- a/applications/precipitateEvolution_pfunction/equations.cc +++ b/applications/precipitateEvolution_pfunction/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/precipitateEvolution_pfunction/postprocess.cc b/applications/precipitateEvolution_pfunction/postprocess.cc index 077889a5..9393940b 100644 --- a/applications/precipitateEvolution_pfunction/postprocess.cc +++ b/applications/precipitateEvolution_pfunction/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/applications/spinodalDecomposition/equations.cc b/applications/spinodalDecomposition/equations.cc index 467f4754..a5015461 100644 --- a/applications/spinodalDecomposition/equations.cc +++ b/applications/spinodalDecomposition/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/applications/spinodalDecomposition/postprocess.cc b/applications/spinodalDecomposition/postprocess.cc index d4486ebc..b1e5a4c7 100644 --- a/applications/spinodalDecomposition/postprocess.cc +++ b/applications/spinodalDecomposition/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/automatic_tests/CHAC_anisotropyRegularized/equations.cc b/automatic_tests/CHAC_anisotropyRegularized/equations.cc index 34d6efdd..3237df28 100644 --- a/automatic_tests/CHAC_anisotropyRegularized/equations.cc +++ b/automatic_tests/CHAC_anisotropyRegularized/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/automatic_tests/CHAC_anisotropyRegularized/postprocess.cc b/automatic_tests/CHAC_anisotropyRegularized/postprocess.cc index 921fc695..769433fa 100644 --- a/automatic_tests/CHAC_anisotropyRegularized/postprocess.cc +++ b/automatic_tests/CHAC_anisotropyRegularized/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/automatic_tests/CHiMaD_benchmark6a/equations.cc b/automatic_tests/CHiMaD_benchmark6a/equations.cc index 7e04322c..5578eb06 100644 --- a/automatic_tests/CHiMaD_benchmark6a/equations.cc +++ b/automatic_tests/CHiMaD_benchmark6a/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/automatic_tests/CHiMaD_benchmark6a/postprocess.cc b/automatic_tests/CHiMaD_benchmark6a/postprocess.cc index 7292e9eb..f761890f 100644 --- a/automatic_tests/CHiMaD_benchmark6a/postprocess.cc +++ b/automatic_tests/CHiMaD_benchmark6a/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/automatic_tests/allenCahn/equations.cc b/automatic_tests/allenCahn/equations.cc index 9ba53a23..5b09a18c 100644 --- a/automatic_tests/allenCahn/equations.cc +++ b/automatic_tests/allenCahn/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "n"); diff --git a/automatic_tests/allenCahn/postprocess.cc b/automatic_tests/allenCahn/postprocess.cc index 9dc68bc2..eecfce5b 100644 --- a/automatic_tests/allenCahn/postprocess.cc +++ b/automatic_tests/allenCahn/postprocess.cc @@ -9,7 +9,7 @@ // postprocessed quantity over the entire domain. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "mg_n"); diff --git a/automatic_tests/cahnHilliard/equations.cc b/automatic_tests/cahnHilliard/equations.cc index 8dbe9cb5..50958e85 100644 --- a/automatic_tests/cahnHilliard/equations.cc +++ b/automatic_tests/cahnHilliard/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/automatic_tests/cahnHilliard/postprocess.cc b/automatic_tests/cahnHilliard/postprocess.cc index 031f595c..37de7092 100644 --- a/automatic_tests/cahnHilliard/postprocess.cc +++ b/automatic_tests/cahnHilliard/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/automatic_tests/corrosion_microgalvanic/equations.cc b/automatic_tests/corrosion_microgalvanic/equations.cc index b0b827fd..f987ea62 100644 --- a/automatic_tests/corrosion_microgalvanic/equations.cc +++ b/automatic_tests/corrosion_microgalvanic/equations.cc @@ -17,7 +17,7 @@ using namespace std; void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Declaring all the model variables as follows: // domain parameter for the electrolyte - psi diff --git a/automatic_tests/corrosion_microgalvanic/postprocess.cc b/automatic_tests/corrosion_microgalvanic/postprocess.cc index 928a6dae..2e194a69 100644 --- a/automatic_tests/corrosion_microgalvanic/postprocess.cc +++ b/automatic_tests/corrosion_microgalvanic/postprocess.cc @@ -9,7 +9,7 @@ // postprocessed quantity over the entire domain. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/automatic_tests/coupledCahnHilliardAllenCahn/equations.cc b/automatic_tests/coupledCahnHilliardAllenCahn/equations.cc index d3e5554c..75267259 100644 --- a/automatic_tests/coupledCahnHilliardAllenCahn/equations.cc +++ b/automatic_tests/coupledCahnHilliardAllenCahn/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/automatic_tests/coupledCahnHilliardAllenCahn/postprocess.cc b/automatic_tests/coupledCahnHilliardAllenCahn/postprocess.cc index 73ec2dab..d7662054 100644 --- a/automatic_tests/coupledCahnHilliardAllenCahn/postprocess.cc +++ b/automatic_tests/coupledCahnHilliardAllenCahn/postprocess.cc @@ -9,7 +9,7 @@ // postprocessed quantity over the entire domain. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/automatic_tests/grainGrowth/equations.cc b/automatic_tests/grainGrowth/equations.cc index 0356c47f..9a3f41fa 100644 --- a/automatic_tests/grainGrowth/equations.cc +++ b/automatic_tests/grainGrowth/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { for (unsigned int var_index = 0; var_index < 6; var_index++) { diff --git a/automatic_tests/grainGrowth/postprocess.cc b/automatic_tests/grainGrowth/postprocess.cc index b7e77abe..e64567fc 100644 --- a/automatic_tests/grainGrowth/postprocess.cc +++ b/automatic_tests/grainGrowth/postprocess.cc @@ -9,7 +9,7 @@ // postprocessed quantity over the entire domain. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "feature_ids"); diff --git a/automatic_tests/main.cc b/automatic_tests/main.cc index 1bc0af12..f5526507 100644 --- a/automatic_tests/main.cc +++ b/automatic_tests/main.cc @@ -2,19 +2,19 @@ #include "customPDE.h" #include "ICs_and_BCs.cc" +#include "core/variableAttributes.h" #include "equations.cc" #include #include #include -#include // Header file for postprocessing that may or may not exist #ifdef POSTPROCESS_FILE_EXISTS # include "postprocess.cc" #else void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() {} #endif @@ -63,10 +63,11 @@ main(int argc, char **argv) // postprocessing variables there are, how many sets of elastic constants // there are, and how many user-defined constants there are. - const variableAttributeLoader attribute_loader; - const AttributesList var_attributes = attribute_loader.get_var_attributes(); - const AttributesList pp_attributes = attribute_loader.get_pp_attributes(); - inputFileReader input_file_reader(parameters_filename, + customAttributeLoader attribute_loader; + attribute_loader.init_variable_attributes(); + AttributesList var_attributes = attribute_loader.get_var_attributes(); + AttributesList pp_attributes = attribute_loader.get_pp_attributes(); + inputFileReader input_file_reader(parameters_filename, var_attributes, pp_attributes); diff --git a/automatic_tests/precipitateEvolution/equations.cc b/automatic_tests/precipitateEvolution/equations.cc index 2277cdf5..6c0cc483 100644 --- a/automatic_tests/precipitateEvolution/equations.cc +++ b/automatic_tests/precipitateEvolution/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/automatic_tests/precipitateEvolution/postprocess.cc b/automatic_tests/precipitateEvolution/postprocess.cc index 7c1950d6..c20ffbfd 100644 --- a/automatic_tests/precipitateEvolution/postprocess.cc +++ b/automatic_tests/precipitateEvolution/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/automatic_tests/precipitateEvolution_pfunction/equations.cc b/automatic_tests/precipitateEvolution_pfunction/equations.cc index edaa6603..baeb2de1 100644 --- a/automatic_tests/precipitateEvolution_pfunction/equations.cc +++ b/automatic_tests/precipitateEvolution_pfunction/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/automatic_tests/precipitateEvolution_pfunction/postprocess.cc b/automatic_tests/precipitateEvolution_pfunction/postprocess.cc index 077889a5..9393940b 100644 --- a/automatic_tests/precipitateEvolution_pfunction/postprocess.cc +++ b/automatic_tests/precipitateEvolution_pfunction/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/automatic_tests/spinodalDecomposition/equations.cc b/automatic_tests/spinodalDecomposition/equations.cc index 467f4754..a5015461 100644 --- a/automatic_tests/spinodalDecomposition/equations.cc +++ b/automatic_tests/spinodalDecomposition/equations.cc @@ -14,7 +14,7 @@ // rate calculations. void -variableAttributeLoader::loadVariableAttributes() +customAttributeLoader::loadVariableAttributes() { // Variable 0 set_variable_name(0, "c"); diff --git a/automatic_tests/spinodalDecomposition/postprocess.cc b/automatic_tests/spinodalDecomposition/postprocess.cc index d4486ebc..b1e5a4c7 100644 --- a/automatic_tests/spinodalDecomposition/postprocess.cc +++ b/automatic_tests/spinodalDecomposition/postprocess.cc @@ -11,7 +11,7 @@ // member of customPDE. void -variableAttributeLoader::loadPostProcessorVariableAttributes() +customAttributeLoader::loadPostProcessorVariableAttributes() { // Variable 0 set_variable_name(0, "f_tot"); diff --git a/include/core/variableAttributeLoader.h b/include/core/variableAttributeLoader.h index fe5b8f95..926ca033 100644 --- a/include/core/variableAttributeLoader.h +++ b/include/core/variableAttributeLoader.h @@ -15,16 +15,36 @@ class variableAttributeLoader { public: /** - * \brief Constructor. Executes the user-facing functions and constructs the variable - * attributes. + * \brief Constructor. */ - variableAttributeLoader(); + variableAttributeLoader() = default; /** * \brief Destructor. */ virtual ~variableAttributeLoader() = default; + /** + * \brief Initialize the variable attributes from the two user-facing methods + * `loadVariableAttributes()` and `loadPostProcessorVariableAttributes()`. This must be + * called after the default constructor for derived classes. + */ + void + init_variable_attributes(); + + /** + * \brief getter function for variable attributes list (copy). + */ + [[nodiscard]] AttributesList + get_var_attributes() const; + + /** + * \brief getter function for postprocessing attributes list (copy). + */ + [[nodiscard]] AttributesList + get_pp_attributes() const; + +protected: /** * \brief User-facing method where the variable attributes are set. */ @@ -197,26 +217,6 @@ class variableAttributeLoader void set_output_integral(const unsigned int &index, const bool &flag) const; - /** - * \brief getter function for variable attributes list (copy). - */ - [[nodiscard]] AttributesList - get_var_attributes() const; - - /** - * \brief getter function for postprocessing attributes list (copy). - */ - [[nodiscard]] AttributesList - get_pp_attributes() const; - -protected: - /** - * \brief Initialize the attributes of the variables. This is done is the constructor of - * this class and must be called in constructors of child classes. - */ - void - init_attributes(); - private: /** * \brief The solutions variable attributes @@ -292,4 +292,19 @@ class variableAttributeLoader // The above function should be moved to a 'utilities' module }; +// Template derived class for variableAttributeLoader for applications. +// `loadVariableAttributes()` and `loadPostProcessorVariableAttributes()` are should be +// filled out in all the applications. +class customAttributeLoader : public variableAttributeLoader +{ +public: + ~customAttributeLoader() override = default; + + void + loadVariableAttributes() override; + + void + loadPostProcessorVariableAttributes() override; +}; + #endif diff --git a/src/core/variableAttributeLoader.cc b/src/core/variableAttributeLoader.cc index c02ff040..f8165886 100644 --- a/src/core/variableAttributeLoader.cc +++ b/src/core/variableAttributeLoader.cc @@ -3,14 +3,6 @@ #include -// NOLINTBEGIN(cppcoreguidelines-prefer-member-initializer) -variableAttributeLoader::variableAttributeLoader() -{ - this->init_attributes(); -} - -// NOLINTEND(cppcoreguidelines-prefer-member-initializer) - void variableAttributeLoader::loadVariableAttributes() {} @@ -20,7 +12,7 @@ variableAttributeLoader::loadPostProcessorVariableAttributes() {} void -variableAttributeLoader::init_attributes() +variableAttributeLoader::init_variable_attributes() { relevant_attributes = &var_attributes; loadVariableAttributes(); diff --git a/tests/core/nonlinearity.cc b/tests/core/nonlinearity.cc index e33cdf43..b73624d4 100644 --- a/tests/core/nonlinearity.cc +++ b/tests/core/nonlinearity.cc @@ -25,11 +25,6 @@ TEST_CASE("Nonlinearity criterion") class testVariableAttributeLoader : public variableAttributeLoader { public: - testVariableAttributeLoader() - { - this->init_attributes(); - } - ~testVariableAttributeLoader() override = default; void @@ -60,7 +55,7 @@ TEST_CASE("Nonlinearity criterion") }; testVariableAttributeLoader attributes; - + attributes.init_variable_attributes(); AttributesList main_variables = attributes.get_var_attributes(); AttributesList pp_variables = attributes.get_pp_attributes(); @@ -94,11 +89,6 @@ TEST_CASE("Nonlinearity criterion") class testVariableAttributeLoader : public variableAttributeLoader { public: - testVariableAttributeLoader() - { - this->init_attributes(); - } - ~testVariableAttributeLoader() override = default; void @@ -148,7 +138,7 @@ TEST_CASE("Nonlinearity criterion") }; testVariableAttributeLoader attributes; - + attributes.init_variable_attributes(); AttributesList main_variables = attributes.get_var_attributes(); AttributesList pp_variables = attributes.get_pp_attributes(); @@ -173,11 +163,6 @@ TEST_CASE("Nonlinearity criterion") class testVariableAttributeLoader : public variableAttributeLoader { public: - testVariableAttributeLoader() - { - this->init_attributes(); - } - ~testVariableAttributeLoader() override = default; void @@ -200,7 +185,7 @@ TEST_CASE("Nonlinearity criterion") }; testVariableAttributeLoader attributes; - + attributes.init_variable_attributes(); AttributesList main_variables = attributes.get_var_attributes(); AttributesList pp_variables = attributes.get_pp_attributes(); @@ -222,11 +207,6 @@ TEST_CASE("Nonlinearity criterion") class testVariableAttributeLoader : public variableAttributeLoader { public: - testVariableAttributeLoader() - { - this->init_attributes(); - } - ~testVariableAttributeLoader() override = default; void @@ -259,7 +239,7 @@ TEST_CASE("Nonlinearity criterion") }; testVariableAttributeLoader attributes; - + attributes.init_variable_attributes(); AttributesList main_variables = attributes.get_var_attributes(); AttributesList pp_variables = attributes.get_pp_attributes(); @@ -283,11 +263,6 @@ TEST_CASE("Nonlinearity criterion") class testVariableAttributeLoader : public variableAttributeLoader { public: - testVariableAttributeLoader() - { - this->init_attributes(); - } - ~testVariableAttributeLoader() override = default; void @@ -329,7 +304,7 @@ TEST_CASE("Nonlinearity criterion") }; testVariableAttributeLoader attributes; - + attributes.init_variable_attributes(); AttributesList main_variables = attributes.get_var_attributes(); AttributesList pp_variables = attributes.get_pp_attributes();