1 #ifndef ASCII_PLOTS_HPP
2 #define ASCII_PLOTS_HPP
13 std::vector<int> prevrow(nx+1,-1);
14 for (
int j=ny;j>=0;j--){
17 for (
int i=0;i<=nx;i++){
18 double r = bounds.
min_r + i*dr;
19 double z = bounds.
min_z + j*dz;
22 double val = func(r, z);
30 num = std::max(33,std::min(num,125));
33 if (prevnum!=num || prevrow[i]!=num) printf(
"%c",mychar);
40 printf(
"xlims: [%1.1e, %1.1e]; ylims: [%1.1e, %1.1e]\n", bounds.
min_r, bounds.
max_r, bounds.
min_z, bounds.
max_z);
void ascii_contour_plot(const RZBounds &bounds, F func)
Definition: ascii_plots.hpp:7
Definition: rz_bounds.hpp:4
double max_z
Definition: rz_bounds.hpp:8
double min_r
Definition: rz_bounds.hpp:5
KOKKOS_INLINE_FUNCTION double get_z_width() const
Definition: rz_bounds.hpp:28
KOKKOS_INLINE_FUNCTION double get_r_width() const
Definition: rz_bounds.hpp:24
double min_z
Definition: rz_bounds.hpp:7
double max_r
Definition: rz_bounds.hpp:6