本文整理汇总了C++中Transform::Backward方法的典型用法代码示例。如果您正苦于以下问题:C++ Transform::Backward方法的具体用法?C++ Transform::Backward怎么用?C++ Transform::Backward使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Transform
的用法示例。
在下文中一共展示了Transform::Backward方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main( int argc, char** argv ) {
double min[2] = { -M_PI, -M_PI };
double max[2] = { +M_PI, +M_PI };
bool periodic[2] = { false, false };
int nx[2] = { 8, 8 };
Mesh* mesh = new Mesh( "mesh", nx, "legendre", 8, min, max, periodic );
Field* field = new Field( "field", mesh, 1, NULL );
Transform* trans = new Transform( field );
mesh->Save();
trans->fMesh->Save();
field->SetICFunc( 0, r0 );
WriteXDMFHeader( 0 );
WriteXDMF( &field, 1, 0, 0.0, 0.0 );
WriteXDMFFooter( 0 );
trans->Interp();
WriteXDMFHeader( 1 );
WriteXDMF( &trans->fField, 1, 1, 0.0, 0.0 );
WriteXDMFFooter( 1 );
field->SetICFunc( 0, r1 );
WriteXDMFHeader( 2 );
WriteXDMF( &field, 1, 2, 0.0, 0.0 );
WriteXDMFFooter( 2 );
trans->Interp();
WriteXDMFHeader( 3 );
WriteXDMF( &trans->fField, 1, 3, 0.0, 0.0 );
WriteXDMFFooter( 3 );
trans->Forward();
WriteXDMFHeader( 4 );
WriteXDMF( &trans->fField, 1, 4, 0.0, 0.0 );
WriteXDMFFooter( 4 );
Filter( trans->fField );
trans->Backward();
WriteXDMFHeader( 5 );
WriteXDMF( &field, 1, 5, 0.0, 0.0 );
WriteXDMFFooter( 5 );
delete mesh;
delete field;
delete trans;
return 1;
}