37#include "MR_rect_tree.hpp"
38#include "MR_cell_cplx.hpp"
39#include "MR_rt_to_cc.hpp"
42typedef mjr::tree15b2d1rT tt_t;
43typedef mjr::MRccT5 cc_t;
44typedef mjr::MR_rt_to_cc<tt_t, cc_t> tc_t;
47tt_t::rrpt_t damp_cos_wave(tt_t::drpt_t xvec) {
51 double z = std::exp(-d/4)*std::cos(4*std::sqrt(d));
57 tt_t tree({-2.1, -2.1},
61 tree.refine_grid(7, damp_cos_wave);
64 tc_t::construct_geometry_fans(ccplx,
67 {{tc_t::val_src_spc_t::FDOMAIN, 0},
68 {tc_t::val_src_spc_t::FDOMAIN, 1},
69 {tc_t::val_src_spc_t::FRANGE, 0}});
70 ccplx.create_named_datasets({
"x",
"y",
"f(x,y)"});
72 ccplx.write_xml_vtk(
"hello_world.vtu",
"hello_world");