Browse Source

xap/compucell3d: Build against vtk-6.3.0.

slackware-14.2
Damien Goutte-Gattat 3 years ago
parent
commit
bae42f677f
  1. 28
      xap/compucell3d/CompuCell3D-20180916-fix-vtk7-gettuplevalue.patch
  2. 2
      xap/compucell3d/compucell3d.SlackBuild

28
xap/compucell3d/CompuCell3D-20180916-fix-vtk7-gettuplevalue.patch

@ -1,28 +0,0 @@
diff -Naur CompuCell3D-20180916.orig/CompuCell3D/core/pyinterface/SerializerDE/SerializerDE.cpp CompuCell3D-20180916/CompuCell3D/core/pyinterface/SerializerDE/SerializerDE.cpp
--- CompuCell3D-20180916.orig/CompuCell3D/core/pyinterface/SerializerDE/SerializerDE.cpp 2018-07-23 01:30:09.000000000 +0100
+++ CompuCell3D-20180916/CompuCell3D/core/pyinterface/SerializerDE/SerializerDE.cpp 2018-09-16 17:02:36.870316092 +0100
@@ -655,7 +655,7 @@
for(pt.y =0 ; pt.y<fieldDim.y ; ++pt.y)
for(pt.x =0 ; pt.x<fieldDim.x ; ++pt.x){
- fieldArray->GetTupleValue(offset,tuple);
+ fieldArray->GetTypedTuple(offset,tuple);
// (*fieldPtr)[pt.x][pt.y][pt.z]=Coordinates3D<float>(tuple[0],tuple[1],tuple[2]) ;
@@ -789,7 +789,7 @@
if(mitr!=fieldPtr->end()){
;
}else{
- fieldArray->GetTupleValue(offset,tuple);
+ fieldArray->GetTypedTuple(offset,tuple);
cerr<<"inserting "<<Coordinates3D<float>(tuple[0],tuple[1],tuple[2])<<endl;
fieldPtr->insert(make_pair(cell,Coordinates3D<float>(tuple[0],tuple[1],tuple[2])));
@@ -801,4 +801,4 @@
fieldDataReader->Delete();
return true;
-}
\ No newline at end of file
+}

2
xap/compucell3d/compucell3d.SlackBuild

@ -89,8 +89,6 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# Allow compile with VTK >= 7
patch -p 1 < $CWD/CompuCell3D-20180916-fix-vtk7-gettuplevalue.patch
mkdir CompuCell3D/build && cd CompuCell3D/build
cmake \
-DCMAKE_BUILD_TYPE=Release \

Loading…
Cancel
Save