Skip to content

Commit

Permalink
Merge pull request #199 from vincentcasseau/main
Browse files Browse the repository at this point in the history
PyPI: fix install on azure with prodmode 2
  • Loading branch information
vincentcasseau authored Oct 15, 2024
2 parents b8053a6 + 90b7698 commit 6938302
Show file tree
Hide file tree
Showing 28 changed files with 37 additions and 294 deletions.
91 changes: 0 additions & 91 deletions .github/workflows/publish-pypi.yml.disabled

This file was deleted.

2 changes: 1 addition & 1 deletion Cassiopee/CPlot/install
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ "$PRODMODE" = "" ]; then
fi

# Compilation et installation
if [ $PRODMODE -le 1 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/Compressor/install
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if [ "$PRODMODE" = "" ]; then
fi

# Compilation et installation
if [ $PRODMODE -le 1 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/Connector/install
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [ "$PRODMODE" = "" ]; then
fi

# Compilation et installation
if [ $PRODMODE -le 1 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/Converter/install
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [ "$PRODMODE" = "" ]; then
fi

# Compilation et installation
if [ $PRODMODE -le 1 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/Dist2Walls/install
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ "$PRODMODE" = "" ]; then
fi

# Compilation et installation
if [ $PRODMODE -le 1 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/Generator/install
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [ "$PRODMODE" = "" ]; then
fi

# Compilation et installation
if [ $PRODMODE -le 1 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/Geom/install
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if [ "$PRODMODE" = "" ]; then
fi

# Compilation et installation
if [ $PRODMODE -le 1 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/Initiator/install
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if [ "$PRODMODE" = "" ]; then
fi

# Compilation et installation
if [ $PRODMODE -le 1 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/Intersector/install
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if [ "$PRODMODE" = "" ]; then
fi

# Compilation et installation
if [ $PRODMODE -le 1 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/KCore/installBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@
[] # NvccAdditionalOptions
],
###############################################################################
'azure': [ 'Linux ubuntu 24.04 - Github Actions',
'azure': [ 'Linux ubuntu 20.04 - Github Actions',
'gfortran', # f77compiler
'gfortran', # f90compiler
'gcc', # Cppcompiler
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/OCC/install
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fi
#cd ..

# Compilation et installation
if [ $PRODMODE -le 1 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/Post/install
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [ "$PRODMODE" = "" ]; then
fi

# Compilation et installation
if [ $PRODMODE -le 1 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/RigidMotion/install
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ "$PRODMODE" = "" ]; then
fi

# Compilation et installation
if [ $PRODMODE -le 1 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/Template/install
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ "$PRODMODE" = "" ]; then
fi

# Compilation et installation
if [ $PRODMODE -le 0 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/Transform/install
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if [ "$PRODMODE" = "" ]; then
fi

# Compilation et installation
if [ $PRODMODE -le 1 ]; then
if [ $PRODMODE -le 2 ]; then
sconsf=`which scons`
if [ "$OMP_NUM_THREADS" != "" ]; then
export SCONSOPT="-j $OMP_NUM_THREADS"
Expand Down
2 changes: 1 addition & 1 deletion Cassiopee/XCore/XCore/AdaptMesh/AdaptMesh_Init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
along with Cassiopee. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Mesh.h"
#include "Karray.h"
#include "common/Karray.h"
#include "common/mem.h"

PyObject *K_XCORE::AdaptMesh_Init(PyObject *self, PyObject *args)
Expand Down
8 changes: 4 additions & 4 deletions Cassiopee/XCore/XCore/AdaptMesh/MeshInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
along with Cassiopee. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Mesh.h"
#include "Karray.h"
#include "common/Karray.h"
#include "common/mem.h"

Mesh::Mesh()
Expand Down Expand Up @@ -87,9 +87,9 @@ Mesh::Mesh()
Mesh *Mesh_from_Karray(Karray *karray)
{
E_Int np = karray->npoints();
E_Float *X = karray->X();
E_Float *Y = karray->Y();
E_Float *Z = karray->Z();
E_Float *X = karray->x;
E_Float *Y = karray->y;
E_Float *Z = karray->z;

E_Int nf = karray->nfaces();

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,14 @@ struct Karray {
inline E_Int *ngon() const { return cn->getNGon(); }
inline E_Int *nface() const { return cn->getNFace(); }

inline E_Float *X() const { return x; }
inline E_Float *Y() const { return y; }
inline E_Float *Z() const { return z; }

inline E_Int *get_face(E_Int face, E_Int &np) const
{ return cn->getFace(face, np, ngon(), indpg()); }

inline E_Int *get_cell(E_Int cell, E_Int &nf) const
{ return cn->getElt(cell, nf, nface(), indph()); }

inline E_Int orient_boundary()
{ return K_CONNECT::orient_boundary_ngon(X(), Y(), Z(), *cn); }
{ return K_CONNECT::orient_boundary_ngon(x, y, z, *cn); }

inline E_Int build_parent_elements(E_Int *owner, E_Int *neigh)
{ return K_CONNECT::build_parent_elements_ngon(*cn, owner, neigh); }
Expand All @@ -66,4 +62,4 @@ E_Int Karray_parse_ngon(PyObject *pyobject, Karray &karray);

void Karray_free_structured(Karray &karray);

E_Int Karray_parse_structured(PyObject *pyobject, Karray &karray);
E_Int Karray_parse_structured(PyObject *pyobject, Karray &karray);
4 changes: 2 additions & 2 deletions Cassiopee/XCore/XCore/intersectMesh/IntersectMesh_Init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
along with Cassiopee. If not, see <http://www.gnu.org/licenses/>.
*/
#include "mesh.h"
#include "karray.h"
#include "common/Karray.h"
//#include "BVH.h"

PyObject *K_XCORE::IntersectMesh_Init(PyObject *self, PyObject *args)
Expand All @@ -39,7 +39,7 @@ PyObject *K_XCORE::IntersectMesh_Init(PyObject *self, PyObject *args)

// Init mesh

IMesh *M = new IMesh(*karray.cn, karray.X, karray.Y, karray.Z, karray.npts);
IMesh *M = new IMesh(*karray.cn, karray.x, karray.y, karray.z, karray.npts);
/*
M->make_skin();
puts("Making BVH");
Expand Down
6 changes: 3 additions & 3 deletions Cassiopee/XCore/XCore/intersectMesh/extract.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "mesh.h"
#include "karray.h"
#include "common/Karray.h"

PyObject *K_XCORE::extractCell(PyObject *self, PyObject *args)
{
Expand All @@ -19,7 +19,7 @@ PyObject *K_XCORE::extractCell(PyObject *self, PyObject *args)

if (ret != 0) return NULL;

IMesh M(*marray.cn, marray.X, marray.Y, marray.Z, marray.npts);
IMesh M(*marray.cn, marray.x, marray.y, marray.z, marray.npts);

IMesh M_out;

Expand Down Expand Up @@ -91,4 +91,4 @@ PyObject *K_XCORE::extractCell(PyObject *self, PyObject *args)


return M_out.export_karray();
}
}
4 changes: 2 additions & 2 deletions Cassiopee/XCore/XCore/intersectMesh/intersectMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
along with Cassiopee. If not, see <http://www.gnu.org/licenses/>.
*/
#include "xcore.h"
#include "karray.h"
#include "common/Karray.h"
#include "common/common.h"
#include "mesh.h"
#include "smesh.h"
Expand Down Expand Up @@ -312,7 +312,7 @@ PyObject *K_XCORE::intersectMesh(PyObject *self, PyObject *args)
}

// Init and orient master/slave meshes
IMesh S(*sarray.cn, sarray.X, sarray.Y, sarray.Z, sarray.npts);
IMesh S(*sarray.cn, sarray.x, sarray.y, sarray.z, sarray.npts);

M.make_skin();
S.make_skin();
Expand Down
Loading

0 comments on commit 6938302

Please sign in to comment.