[Gmsh] trouble building latest svn gmsh with cgns 3.1.3.4-1
trophime
christophe.trophime at lncmi.cnrs.fr
Thu Mar 15 13:12:48 CET 2012
On Thu, 2012-03-15 at 11:09 +0100, trophime wrote:
> Hi,
> I am trying to rebuild latest debian package with cgns support.
> I have some compilation errors. I suspect this is due to the version
> of cgns used in debian. What is the cgns version you are using?
>
> Best
> C.
>
Here is a patch to get gmsh compile with cgns 3.1.3.4-1.
I have a concern relative to this change:
@@ -1490,8 +1490,9 @@
ZoneTask() : status(0), indexInOwner(0) { }
void change_status(const int _status)
{
-#pragma omp atomic
- status = _status;
+ //invalid pragma =
+ #pragma omp atomic
+ status += _status;
}
};
It seems that #pragma omp atomic is not a valid with "=" (gcc 4.6)
I had made this change just to make it compile... It maybe
be better just to comment out the "#pragma omp atomic"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgns.patch
Type: text/x-patch
Size: 8401 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20120315/231bd372/attachment.patch>