The netgen file is newer and has the correct spelling “mp.second_order”, however I noticed that there are other differences between the netgen  file and calculix cgx. 

--- /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_netgen/netgen/work/netgen-5.3.1/nglib/ng_vol.cpp 2014-08-29 04:54:00.000000000 -0500
+++ /opt/local/var/macports/build/_Users_marbre_ports_math_calculix/calculix-cgx/work/CalculiX/cgx_2.10/netgen/ng_vol.cpp 2015-12-16 14:08:16.000000000 -0600
@@ -1,5 +1,12 @@
+/*
+  original from  Joachim Schoeberl
+  ..../netgen-4.9.13/nglib/ng_vol.cpp
+  License: LGPL
+*/
 #include <iostream>
 #include <fstream>
+// added by wittig 2.dec 2013
+#include <mystdlib.h>
 
 using namespace std;
 
@@ -11,7 +18,9 @@
 {
   using namespace nglib;
 
-  cout << "Netgen Testing" << endl;
+  // changed by wittig 2.dec 2013
+  //cout << "Netgen Testing" << endl;
+  cout << "Netgen tet-mesher" << endl;
 
   if (argc < 2)
     {
@@ -63,13 +72,17 @@
   Ng_Meshing_Parameters mp;
   mp.maxh = 1e6;
   mp.fineness = 1;
-  mp.second_order = 0;
+  mp.secondorder = 0;
+  // added by wittig 2.dec 2013
+  if (argc == 3) mp.maxh = atof(argv[2]);
 
   cout << "start meshing" << endl;
   Ng_GenerateVolumeMesh (mesh, &mp);
   cout << "meshing done" << endl;
 
   // volume mesh output
+  // deactivated by wittig 2.dec 2013
+  /*
   np = Ng_GetNP(mesh);
   cout << "Points: " << np << endl;
 
@@ -87,6 +100,7 @@
       cout << i << ": " << tet[0] << " " << tet[1] 
    << " " << tet[2] << " " << tet[3] << endl;
     }
+  */
 
   Ng_SaveMesh(mesh,"test.vol");
 

Attachment: ng_vol.cpp.diff
Description: Binary data



On Mar 30, 2016, at 12:24 AM, Ian Rees <[email protected]> wrote:

From my reading of the cgx installation guide for cgx 2.9 (section 7.7.4 of the academic-looking PDF from dhondt.de), it seems that the version of netgen (5.3.1) built via MacPorts is already fixed.

That said, I do have a pending change to the netgen port to add nglib ( https://trac.macports.org/ticket/50687 ), so perhaps we could combine any necessary changes to that ticket ;)    -Ian-

On Wed, Mar 30, 2016 at 5:53 PM Joshua Root <[email protected]> wrote:
On 2016-3-30 15:40 , Mark Brethen wrote:
> I’m working on a Calculix cgx port that uses a modified netgen for tet meshing. A modified file “ng_vol.cpp” (provided) is used to build Netgen. Since this would conflict with the Netgen port, how should this be implement as a helper app to cgx?

Can you install it in a different place than vanilla netgen?

- Josh
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to