Skip to content

Commit ee69088

Browse files
authored
Merge pull request #6775 from bangerth/viz-pp
Minor cleanups in the visualization postprocessors.
2 parents 8fa70cc + ac03c1d commit ee69088

File tree

7 files changed

+17
-13
lines changed

7 files changed

+17
-13
lines changed

include/aspect/postprocess/visualization/geoid.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ namespace aspect
7373
*/
7474
std::list<std::string>
7575
required_other_postprocessors() const override;
76-
77-
private:
78-
7976
};
8077
}
8178
}

include/aspect/postprocess/visualization/grain_lag_angle.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ namespace aspect
7070
*/
7171
std::pair<std::string, std::unique_ptr<Vector<float>>>
7272
execute() const override;
73-
7473
};
7574
}
7675
}

include/aspect/postprocess/visualization/heat_flux_map.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,19 @@ namespace aspect
9696
* A temporary storage place for the point-wise heat flux
9797
* solution. Only initialized and used if output_point_wise_heat_flux
9898
* is set to true.
99+
*
100+
* This object is computed in update() and then used on every cell
101+
* where evaluate_vector_field() is called.
99102
*/
100103
LinearAlgebra::BlockVector heat_flux_density_solution;
101104

102105
/**
103106
* A temporary storage place for the cell-wise heat flux
104107
* solution. Only initialized and used if output_point_wise_heat_flux
105108
* is set to false.
109+
*
110+
* This object is computed in update() and then used on every cell
111+
* where evaluate_vector_field() is called.
106112
*/
107113
std::vector<std::vector<std::pair<double, double>>> heat_flux_and_area;
108114
};

include/aspect/postprocess/visualization/heating.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ namespace aspect
6565
void
6666
evaluate_vector_field(const DataPostprocessorInputs::Vector<dim> &input_data,
6767
std::vector<Vector<double>> &computed_quantities) const override;
68-
6968
};
7069
}
7170
}

include/aspect/postprocess/visualization/spd_factor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ namespace aspect
6262
*/
6363
void
6464
parse_parameters (ParameterHandler &prm) override;
65-
6665
};
6766
}
6867
}

include/aspect/postprocess/visualization/temperature_anomaly.h

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,24 @@ namespace aspect
7272
* Number of slices to use when computing depth average of temperature.
7373
*/
7474
unsigned int n_slices;
75-
/**
76-
* Vector of temperature depth average values, padded to include two ghost values
77-
* above and below the surface and bottom of the domain to allow interpolation at
78-
* all depths.
79-
*/
80-
std::vector<double> padded_temperature_depth_average;
75+
8176
/**
8277
* Whether to extrapolate temperatures above/below the first/last depth-average slice
8378
* or, alternatively, interpolate above the center of the first slice using the surface
8479
* temperature or below the last slice using the bottom temperature.
8580
*/
8681
bool extrapolate_surface;
8782
bool extrapolate_bottom;
83+
84+
/**
85+
* Vector of temperature depth average values, padded to include two ghost values
86+
* above and below the surface and bottom of the domain to allow interpolation at
87+
* all depths.
88+
*
89+
* This object is computed in update() and then used on every cell
90+
* where evaluate_vector_field() is called.
91+
*/
92+
std::vector<double> padded_temperature_depth_average;
8893
};
8994
}
9095
}

source/postprocess/visualization/temperature_anomaly.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ namespace aspect
7979
padded_temperature_depth_average[n_slices+1] = 2.*bottom_temperature - temperature_depth_average[n_slices-1];
8080
}
8181
std::copy ( temperature_depth_average.begin(), temperature_depth_average.end(), padded_temperature_depth_average.begin() + 1 );
82-
8382
}
8483

8584

0 commit comments

Comments
 (0)