yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #11623
[Branch ~yade-pkg/yade/git-trunk] Rev 3524: add initSolver()
------------------------------------------------------------
revno: 3524
committer: T Sweijen <thomasje100@xxxxxxxxxxx>
timestamp: Tue 2014-11-04 10:55:54 +0100
message:
add initSolver()
modified:
pkg/pfv/TwoPhaseFlowEngine.hpp
--
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/TwoPhaseFlowEngine.hpp'
--- pkg/pfv/TwoPhaseFlowEngine.hpp 2014-11-04 09:46:10 +0000
+++ pkg/pfv/TwoPhaseFlowEngine.hpp 2014-11-04 09:55:54 +0000
@@ -103,7 +103,7 @@
//FIXME, needs to trigger initSolver() Somewhere, else changing flow.debug or other similar things after first calculation has no effect
//FIXME, I removed indexing cells from inside UnsatEngine (SoluteEngine shouldl be ok (?)) in order to get pressure computed, problem is they are not indexed at all if flow is not calculated
- void computeOnePhaseFlow() {scene = Omega::instance().getScene().get(); if (!solver) cerr<<"no solver!"<<endl; solver->gaussSeidel(scene->dt);}
+ void computeOnePhaseFlow() {scene = Omega::instance().getScene().get(); if (!solver) cerr<<"no solver!"<<endl; solver->gaussSeidel(scene->dt);initSolver(*solver);}
CELL_SCALAR_GETTER(bool,.isWRes,cellIsWRes)
CELL_SCALAR_GETTER(bool,.isNWRes,cellIsNWRes)