49 : sourceMeshFile(
std::move(source)),
50 targetMeshFile(
std::move(target)),
51 outputMeshFile(
std::move(output)) {}
54 : method(
std::move(method)), checkQuality(checkQuality) {}
58 std::cout <<
"TransferDriver created" << std::endl;
64 std::shared_ptr<meshBase> source{
66 std::shared_ptr<meshBase> target{
68 std::cout <<
"TransferDriver created" << std::endl;
77 transfer->transferPointData(
78 source->getArrayIDs(this->opts_.arrayNames.value()),
79 source->getNewArrayNames());
81 transfer->run(source->getNewArrayNames());
83 source->write(
"new.vtu");
86 std::cout <<
"Time spent transferring data (ms) " << T.
elapsed() << std::endl;
100 std::cout <<
"TransferDriver destroyed" << std::endl;
109 if (method ==
"Consistent Interpolation") {
113 else if (method ==
"Conservative Surface Transfer") {
117 #ifdef HAVE_SUPERMESH 118 else if (method ==
"Conservative Volume Transfer") {
123 std::cerr <<
"Method " << method <<
" is not supported." << std::endl;
124 std::cerr <<
"Supported methods are : " << std::endl;
125 std::cerr <<
"1) Consistent Interpolation" << std::endl;
127 std::cerr <<
"2) Conservative Surface Transfer" << std::endl;
129 #ifdef HAVE_SUPERMESH 130 std::cerr <<
"3) Conservative Volume Transfer" << std::endl;
std::string targetMeshFile
~TransferDriver() override
jsoncons::string_view getProgramType() const override
std::string outputMeshFile
const Files & getFiles() const
void execute() const override
Run the workflow represented by the driver.
A brief description of meshBase.
static std::shared_ptr< ConservativeVolumeTransfer > CreateShared(meshBase *_source, meshBase *_target)
static std::shared_ptr< ConservativeSurfaceTransfer > CreateShared(meshBase *_source, meshBase *_target)
static meshBase * Create(const std::string &fname)
Construct vtkMesh from filename.
std::string sourceMeshFile
void setFiles(Files files)
static std::shared_ptr< FETransfer > CreateShared(meshBase *source, meshBase *target)
const Opts & getOpts() const
jsoncons::optional< std::vector< std::string > > arrayNames
static std::shared_ptr< TransferBase > CreateTransferObject(meshBase *srcmsh, meshBase *trgmsh, const std::string &method)
static constexpr const char * programType