Added new versions of DiagST as indicated in the paper 'Additive Overlapping DDM' (i.e, the source is calculated at the subdomain that receives it and it's multiplied by the indicator function of the non-overlapping partition)

This commit is contained in:
psocratis
2020-05-17 18:31:16 -07:00
parent 217efeaa35
commit 56a05f4728
7 changed files with 2381 additions and 9 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ double CutOffFncn(const Vector &x, const Vector & pmin, const Vector & pmax, con
for (int i = 0; i<dim; i++)
{
double val = 1.0;
if( x(i) > pmax(i) || x(i) < pmin(i))
if( x(i) >= pmax(i) || x(i) <= pmin(i))
{
val = 0.0;
}
@@ -72,7 +72,7 @@ double ChiFncn(const Vector &x, const Vector & pmin, const Vector & pmax, const
for (int i = 0; i<dim; i++)
{
double val = 1.0;
if( x(i) > pmax(i) || x(i) < pmin(i))
if( x(i) >= pmax(i) || x(i) <= pmin(i))
{
val = 0.0;
}