Author: cosurgi
Date: 2009-03-10 14:22:50 +0100 (Tue, 10 Mar 2009)
New Revision: 1717

Modified:
   
trunk/pkg/snow/Engine/Ef2_InteractingBox_BssSnowGrain_makeIstSnowLayersContact.cpp
Log:
fix miniwm3 / full wm3 compilation error


Modified: 
trunk/pkg/snow/Engine/Ef2_InteractingBox_BssSnowGrain_makeIstSnowLayersContact.cpp
===================================================================
--- 
trunk/pkg/snow/Engine/Ef2_InteractingBox_BssSnowGrain_makeIstSnowLayersContact.cpp
  2009-03-09 21:47:54 UTC (rev 1716)
+++ 
trunk/pkg/snow/Engine/Ef2_InteractingBox_BssSnowGrain_makeIstSnowLayersContact.cpp
  2009-03-10 13:22:50 UTC (rev 1717)
@@ -117,6 +117,7 @@
        if(!cross_section.empty())
        {
                // find the contact plane with least squre fitting from wm3 
library
+#ifndef MINIWM3
                Plane3<Real> plane(OrthogonalPlaneFit3 (cross_section.size(), 
&cross_section[0]));
                Vector3r N = plane.Normal;
                //const Vector3r N((normal_from_to.Dot(N) > 0) ? plane.Normal : 
1.0*plane.Normal);
@@ -229,6 +230,9 @@
                return res;
 
                //return true;
+#else
+               std::cerr   << "ERROR: full version of wm3 library is needed\n";
+#endif
        }
 //     if(! m1->depths[id2].empty()) m1->depths[id2].clear();
        if(! m2->depths[id1].empty()) m2->depths[id1].clear();
@@ -316,6 +320,7 @@
 
        if(!cross_section.empty())
        {
+#ifndef MINIWM3
                // find the contact plane with least squre fitting from wm3 
library
                Plane3<Real> plane(OrthogonalPlaneFit3 (cross_section.size(), 
&cross_section[0]));
                Vector3r N = plane.Normal;
@@ -429,6 +434,9 @@
                return res;
 
                //return true;
+#else
+               std::cerr   << "ERROR: full version of wm3 library is needed\n";
+#endif
        }
        if(! m1->depths[id2].empty()) m1->depths[id2].clear();
 //     if(! m2->depths[id1].empty()) m2->depths[id1].clear();


_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to