26 #include <boost/current_function.hpp>
38 static constexpr
char CHARSET[] =
".,c8M@jawrpogOQEPGJ";
47 const int width = 78, height = 44, num_pixels = width * height;
49 const complex center(-.7, 0), span(2.7, -(4 / 3.0) * 2.7 * height / width);
50 const complex begin = center - span / 2.0;
51 const int maxiter = 100000;
53 #pragma omp parallel for ordered schedule(dynamic)
54 for (
int pix = 0; pix < num_pixels; ++pix) {
56 const int x = pix % width, y = pix / width;
78 log.info() <<
"done with test program! ";
89 for (; n < maxiter; ++n) {
90 if (std::abs(z) >= 2.0) {
std::complex< double > complex
static size_t mandelbrotCalculate(const complex c, const size_t maxiter)
ExitCode mainMethod(map< string, VariableValue > &) override
This is the "main" method of all Elements programs.
static Logging getLogger(const std::string &name="")
Abstract class for all Elements programs.
ExitCode
Strongly typed exit numbers.
#define MAIN_FOR(ELEMENTS_PROGRAM_NAME)
static constexpr char CHARSET[]