← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3600: implement blockHook for PeriodicFlowEngine as well

 

------------------------------------------------------------
revno: 3600
committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
timestamp: Fri 2015-02-27 18:06:04 +0100
message:
  implement blockHook for PeriodicFlowEngine as well
modified:
  pkg/pfv/PeriodicFlowEngine.cpp


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'pkg/pfv/PeriodicFlowEngine.cpp'
--- pkg/pfv/PeriodicFlowEngine.cpp	2014-10-29 16:49:20 +0000
+++ pkg/pfv/PeriodicFlowEngine.cpp	2015-02-27 17:06:04 +0000
@@ -478,7 +478,6 @@
         if ( debug ) cout << endl << "Tesselating------" << endl << endl;
         flow.tesselation().compute();
         flow.defineFictiousCells();
-
         //FIXME: this is already done in addBoundary(?)
         boundaryConditions ( flow );
 	if ( debug ) cout << endl << "boundaryConditions------" << endl << endl;
@@ -499,7 +498,8 @@
 		cell->info().id=cell->info().baseIndex;
 	}
 	Tes.cellHandles.resize(baseIndex+1);
-
+	/// Call blockHook here if defined, valid indices and ghost status are available
+	if(!blockHook.empty()){ LOG_INFO("Running blockHook: "<<blockHook); pyRunString(blockHook); }
 	if ( debug ) cout << endl << "locateCell------" << endl << endl;
         flow.computePermeability ( );
         porosity = flow.vPoralPorosity/flow.vTotalPorosity;