Conflicting ports

Mark Brethen mark.brethen at gmail.com
Wed Mar 30 16:00:03 PDT 2016


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");
 



> On Mar 30, 2016, at 12:24 AM, Ian Rees <ian.rees at gmail.com> 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 <http://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 <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 <jmr at macports.org <mailto:jmr at macports.org>> 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
> macports-dev at lists.macosforge.org <mailto:macports-dev at lists.macosforge.org>
> https://lists.macosforge.org/mailman/listinfo/macports-dev <https://lists.macosforge.org/mailman/listinfo/macports-dev>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20160330/046a82d3/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ng_vol.cpp.diff
Type: application/octet-stream
Size: 1446 bytes
Desc: not available
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20160330/046a82d3/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20160330/046a82d3/attachment-0003.html>


More information about the macports-dev mailing list