MyVTKOutput<D>::MyVTKOutput(const Array<shared_ptr<CoefficientFunction>> & a_coefs, const Flags & flags, shared_ptr<MeshAccess> ama) : MyVTKOutput(ama, a_coefs, flags.GetStringListFlag("fieldnames" ), flags.GetStringFlag("filename","output"), (int) flags.GetNumFlag("subdivision", 0), (int) flags.GetNumFlag("only_element", -1), flags.GetDefineFlag("nocache")) {;}
NumProcMyVTKOutput::NumProcMyVTKOutput(shared_ptr<PDE> apde, const Flags & flags) : NumProc(apde) { const Array<string> & coefs_strings = flags.GetStringListFlag ("coefficients"); Array<shared_ptr<CoefficientFunction>> coefs; for (int i = 0; i < coefs_strings.Size(); ++i) coefs.Append(apde->GetCoefficientFunction(coefs_strings[i])); if (apde->GetMeshAccess()->GetDimension() == 2) vtkout = make_shared<MyVTKOutput<2>>(coefs, flags, apde->GetMeshAccess()); else vtkout = make_shared<MyVTKOutput<3>>(coefs, flags, apde->GetMeshAccess()); }