You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1681,8 +1681,8 @@ int MatlabToFieldAlgo::mlanalyze(matlabarray mlarray, bool postremark)
1681
1681
}
1682
1682
}
1683
1683
1684
-
if ((mlmeshderivatives.isdense())||(mlfieldderivatives.isdense())||
1685
-
(mlfieldedge.isdense()))
1684
+
if ((mlmeshderivatives.isdense())||(mlfieldderivatives.isdense())/*||
1685
+
(mlfieldedge.isdense())*/)
1686
1686
{
1687
1687
remarkAndThrow("Matrix '" + mlarray.getname() + "' cannot be translated into a SCIRun Field (element is a point, hence no linear/higher order interpolation is supported)", postremark);
1688
1688
}
@@ -1719,7 +1719,7 @@ int MatlabToFieldAlgo::mlanalyze(matlabarray mlarray, bool postremark)
1719
1719
}
1720
1720
1721
1721
// Connectivity should be 2D
1722
-
if ((mledge.getnumdims() > 2)||(mlfieldedge.getnumdims() > 2))
1722
+
if ((mledge.getnumdims() > 2)/*||(mlfieldedge.getnumdims() > 2)*/)
1723
1723
{
1724
1724
remarkAndThrow("Matrix '" + mlarray.getname() + "' cannot be translated into a SCIRun Field (edge connectivity matrix should be 2D)", postremark);
1725
1725
}
@@ -1809,7 +1809,7 @@ int MatlabToFieldAlgo::mlanalyze(matlabarray mlarray, bool postremark)
1809
1809
}
1810
1810
else
1811
1811
{
1812
-
if ((meshbasistype == "quadratic")&&(mlfieldedge.isdense()))
1812
+
if ((meshbasistype == "quadratic")/*&&(mlfieldedge.isdense())*/)
1813
1813
{
1814
1814
fieldbasistype = "linear";
1815
1815
}
@@ -1841,11 +1841,11 @@ int MatlabToFieldAlgo::mlanalyze(matlabarray mlarray, bool postremark)
1841
1841
1842
1842
if ((fieldbasistype == "linear")||(fieldbasistype == "cubic"))
1843
1843
{
1844
-
if ((meshbasistype == "quadratic")&&(mlfieldedge.isempty()))
// remarkAndThrow("Matrix '" + mlarray.getname() + "' cannot be translated into a SCIRun Field (no fieldedge connectivity matrix)", postremark);
1868
+
//}
1869
1869
fieldbasis = "CrvQuadraticLgn";
1870
1870
}
1871
1871
1872
1872
// established fieldbasis //
1873
1873
1874
-
if (mlfieldedge.isdense())
1875
-
{
1876
-
m = mlfieldedge.getm(); n = mlfieldedge.getn();
1877
-
if (fieldbasistype == "quadratic")
1878
-
{
1879
-
if (!(((m==3)&&(n==numelements))||((m==numelements)&&(n==3))))
1880
-
{
1881
-
remarkAndThrow("Matrix '" + mlarray.getname() + "' cannot be translated into a SCIRun Field (one of the dimensions of fieldedge needs to be of size 2 or 3)", postremark);
1882
-
}
1883
-
if (m!=3) mlfieldedge.transpose();
1884
-
}
1885
-
else
1886
-
{
1887
-
if (!(((m==2)&&(n==numelements))||((m==numelements)&&(n==2))))
1888
-
{
1889
-
remarkAndThrow("Matrix '" + mlarray.getname() + "' cannot be translated into a SCIRun Field (one of the dimensions of fieldedge needs to be of size 2 or 3)", postremark);
1890
-
}
1891
-
if (m!=2) mlfieldedge.transpose();
1892
-
}
1893
-
}
1874
+
//if (mlfieldedge.isdense())
1875
+
//{
1876
+
// m = mlfieldedge.getm(); n = mlfieldedge.getn();
1877
+
// if (fieldbasistype == "quadratic")
1878
+
// {
1879
+
// if (!(((m==3)&&(n==numelements))||((m==numelements)&&(n==3))))
1880
+
// {
1881
+
// remarkAndThrow("Matrix '" + mlarray.getname() + "' cannot be translated into a SCIRun Field (one of the dimensions of fieldedge needs to be of size 2 or 3)", postremark);
1882
+
// }
1883
+
// if (m!=3) mlfieldedge.transpose();
1884
+
// }
1885
+
// else
1886
+
// {
1887
+
// if (!(((m==2)&&(n==numelements))||((m==numelements)&&(n==2))))
1888
+
// {
1889
+
// remarkAndThrow("Matrix '" + mlarray.getname() + "' cannot be translated into a SCIRun Field (one of the dimensions of fieldedge needs to be of size 2 or 3)", postremark);
1890
+
// }
1891
+
// if (m!=2) mlfieldedge.transpose();
1892
+
// }
1893
+
//}
1894
1894
1895
1895
if (mlfieldderivatives.isdense())
1896
1896
{
@@ -1937,8 +1937,7 @@ int MatlabToFieldAlgo::mlanalyze(matlabarray mlarray, bool postremark)
1937
1937
1938
1938
// established meshtype //
1939
1939
1940
-
if ((mledge.isdense())||(mlcell.isdense())||
1941
-
(mlfieldedge.isdense()))
1940
+
if ((mledge.isdense())||(mlcell.isdense())/*||(mlfieldedge.isdense())*/)
1942
1941
{ // a matrix with multiple connectivities is not yet allowed
1943
1942
remarkAndThrow("Matrix '" + mlarray.getname() + "' cannot be translated into a SCIRun Field (multiple connectivity matrices defined)", postremark);
1944
1943
}
@@ -2106,10 +2105,10 @@ int MatlabToFieldAlgo::mlanalyze(matlabarray mlarray, bool postremark)
2106
2105
2107
2106
if ((fieldbasistype == "linear")||(fieldbasistype == "cubic"))
2108
2107
{
2109
-
if ((meshbasistype == "quadratic")&&(mlfieldedge.isempty()))
2110
-
{
2111
-
remarkAndThrow("Matrix '" + mlarray.getname() + "' cannot be translated into a SCIRun Field (no fieldedge connectivity matrix)", postremark);
0 commit comments