Skip to content

Commit

Permalink
Merge pull request #46 from vincentcasseau/main
Browse files Browse the repository at this point in the history
KCore: booleans in i8 and notifications
  • Loading branch information
vincentcasseau authored Jun 17, 2024
2 parents bf48b72 + a985c3f commit 1f8468c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cassiopee/Generator/Generator/close.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ PyObject* K_GENERATOR::closeMesh(PyObject* self, PyObject* args)
E_Bool rmDegeneratedFaces = true;
E_Bool rmDegeneratedElts = true;

if (!PYPARSETUPLE_(args, O_ R_ II_ IIII_,
if (!PYPARSETUPLE_(args, O_ R_ BB_ BBBB_,
&array, &eps, &rmOverlappingPts, &rmOrphanPts,
&rmDuplicatedFaces, &rmDuplicatedElts,
&rmDegeneratedFaces, &rmDegeneratedElts)) return NULL;
Expand All @@ -51,7 +51,7 @@ PyObject* K_GENERATOR::closeMesh(PyObject* self, PyObject* args)
FldArrayF* f; FldArrayI* cn;
char* varString; char* eltType;

E_Int res = K_ARRAY::getFromArray(array, varString, f, im, jm, km, cn, eltType);
E_Int res = K_ARRAY::getFromArray3(array, varString, f, im, jm, km, cn, eltType);
E_Int posx = K_ARRAY::isCoordinateXPresent(varString);
E_Int posy = K_ARRAY::isCoordinateYPresent(varString);
E_Int posz = K_ARRAY::isCoordinateZPresent(varString);
Expand Down
4 changes: 4 additions & 0 deletions Cassiopee/KCore/KCore/Array/Array.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@
#define TRRR_ "(fff)"
#define TRRRR_ "(ffff)"
#endif
#define B_ "i"
#define BB_ "ii"
#define BBB_ "iii"
#define BBBB_ "iiii"
#define O_ "O"
#define OO_ "OO"
#define OOO_ "OOO"
Expand Down
1 change: 1 addition & 0 deletions Cassiopee/KCore/installLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
shutil.copyfile("installPath.py", installPath+"/installPath.py")
shutil.copyfile("installBase.py", installPath+"/installBase.py")
shutil.copyfile("test/notify.py", installPath+"/notify.py")
shutil.copyfile("test/notifyInstall.py", installPath+"/notifyInstall.py")

# Ecrit les infos d'install
Dist.writeBuildInfo()
Expand Down
3 changes: 1 addition & 2 deletions Cassiopee/KCore/test/notifyInstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ def parseArgs():
if __name__ == '__main__':
script_args = parseArgs()
recipients = script_args.recipients.split(' ')
if not recipients[0]:
recipients = ['[email protected]', '[email protected]']
if not recipients[0]: recipients = []

# Check install status
log_entries = []
Expand Down

0 comments on commit 1f8468c

Please sign in to comment.