41 std::string
vishost{
"localhost"};
46 std::ostringstream oss_u;
51 oss_u <<
"Random Field";
52 uout <<
"parallel " << num_procs <<
" " << process_rank <<
"\n" 54 << *mesh_ << g1_ <<
"window_geometry 0 20 400 350 " 55 <<
"window_title '" << oss_u.str() <<
"'" << std::flush;
64 std::ostringstream oss_v;
69 oss_v <<
"Topological Support";
70 vout <<
"parallel " << num_procs <<
" " << process_rank <<
"\n" 72 << *mesh_ << g2_ <<
"window_geometry 403 20 400 350 " 73 <<
"window_title '" << oss_v.str() <<
"'" << std::flush;
77 std::ostringstream oss_w;
82 oss_w <<
"Imperfect Topology";
83 wout <<
"parallel " << num_procs <<
" " << process_rank <<
"\n" 85 << *mesh_ << g3_ <<
"window_geometry 0 420 400 350 " 86 <<
"window_title '" << oss_w.str() <<
"'" << std::flush;
90 std::ostringstream oss_l;
96 lout <<
"parallel " << num_procs <<
" " << process_rank <<
"\n" 98 << *mesh_ << g4_ <<
"window_geometry 403 420 400 350 " 99 <<
"window_title '" << oss_l.str() <<
"'" << std::flush;
void SetCycle(int c)
Set time cycle (for time-dependent simulations)
void SetDataFormat(VTKFormat fmt)
Helper class for ParaView visualization data.
static int WorldSize()
Return the size of MPI_COMM_WORLD.
int close()
Close the socketstream.
virtual void RegisterField(const std::string &field_name, GridFunction *gf)
Add a grid function to the collection.
void SetHighOrderOutput(bool high_order_output_)
void SetTime(double t)
Set physical time (for time-dependent simulations)
int open(const char hostname[], int port)
Open the socket stream on 'port' at 'hostname'.
static int WorldRank()
Return the MPI rank in MPI_COMM_WORLD.
void SetLevelsOfDetail(int levels_of_detail_)
virtual void Save() override
void SetPrefixPath(const std::string &prefix)
Set the path where the DataCollection will be saved.