Commits

Sergey A. Bozhenkov  committed abf6cfa

small correction for estimate initial guess - add abs

  • Participants
  • Parent commits 451b717

Comments (0)

Files changed (1)

File src/BoundaryCondition.cpp

         double estimateT1() const
         {
             //simply no flux condition
-            return -A1/B1;
+            return fabs(A1/B1);
         }
         double estimateT2() const
         {
             //simply no flux condition
-            return -A2/B2;
+            return fabs(A2/B2);
         }
 
         void setEpsRel(double eps) { eps_rel = eps; };
         double estimateT1() const
         {
             //simply no flux condition
-            return -A1/B1;
+            return fabs(A1/B1);
         }
         double estimateT2() const
         {
             //simply no flux condition
-            return -A2/B2;
+            return fabs(A2/B2);
         }
 
         void setEpsRel(double eps) { eps_rel = eps; };