1 #ifndef ASCII_PLOTS_HPP
2 #define ASCII_PLOTS_HPP
11 std::vector<int> prevrow(nx+1,-1);
12 for (
int j=ny;j>=0;j--){
15 for (
int i=0;i<=nx;i++){
16 double r = bounds.
min_r + i*dr;
17 double z = bounds.
min_z + j*dz;
20 double val = func(r, z);
28 num = std::max(33,std::min(num,125));
31 if (prevnum!=num || prevrow[i]!=num) printf(
"%c",mychar);
void ascii_contour_plot(const RZBounds &bounds, F func)
Definition: ascii_plots.hpp:5
Definition: rz_bounds.hpp:4
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