mathieumorlighem
Hi Mathieu:
I gave this a whirl, but I had no luck. However, I was able to get my python build to work with inversions (an issue I was having previously). Can I ask what MacOS version you had success with this on? I think some of my issues might be due to Monterey - My system updated last week to 12.3, and some of the reported issues that the update corrected were memory-related issues (potentially responsible for my Seg Faults). I'm definitely speculating here.
I did try to update the PETSc Version number in the install-3.15-mac-arm.sh
script to install Version 3.17.0
(the latest), but when running make
I was returned the following error. I just thought I'd pass this along FYI.
CXX cores/libISSMCore_la-controltao_core.lo
./cores/controltao_core.cpp:97:2: warning: 'TaoSetInitialVector' is deprecated [-Wdeprecated-declarations]
TaoSetInitialVector(tao,X->pvector->vector);
^
/Users/lbir0005/issm/trunk/externalpackages/petsc/install/include/petsctao.h:226:1: note: 'TaoSetInitialVector' has been explicitly marked deprecated here
PETSC_DEPRECATED_FUNCTION("Use TaoSetSolution() (since version 3.17)") static inline PetscErrorCode TaoSetInitialVector(Tao t,Vec v) { return TaoSetSolution(t,v); }
^
/Users/lbir0005/issm/trunk/externalpackages/petsc/install/include/petscconf.h:11:53: note: expanded from macro 'PETSC_DEPRECATED_FUNCTION'
#define PETSC_DEPRECATED_FUNCTION(why) __attribute((deprecated))
^
./cores/controltao_core.cpp:104:2: warning: 'TaoSetObjectiveAndGradientRoutine' is deprecated [-Wdeprecated-declarations]
TaoSetObjectiveAndGradientRoutine(tao,FormFunctionGradient,(void*)&user);
^
/Users/lbir0005/issm/trunk/externalpackages/petsc/install/include/petsctao.h:240:1: note: 'TaoSetObjectiveAndGradientRoutine' has been explicitly marked deprecated here
PETSC_DEPRECATED_FUNCTION("Use TaoSetObjectiveAndGradient() (since version 3.17)") static inline PetscErrorCode TaoSetObjectiveAndGradientRoutine(Tao t,PetscErrorCode (*f)(Tao,Vec,PetscReal*,Vec,void*),void *c) { return TaoSetObjectiveAndGradient(t,NULL,f,c); }
^
/Users/lbir0005/issm/trunk/externalpackages/petsc/install/include/petscconf.h:11:53: note: expanded from macro 'PETSC_DEPRECATED_FUNCTION'
#define PETSC_DEPRECATED_FUNCTION(why) __attribute((deprecated))
^
./cores/controltao_core.cpp:112:2: error: use of undeclared identifier 'TaoGetSolutionVector'
TaoGetSolutionVector(tao,&X->pvector->vector);
^
./cores/controltao_core.cpp:114:2: warning: 'TaoGetGradientVector' is deprecated [-Wdeprecated-declarations]
TaoGetGradientVector(tao,&G->pvector->vector);
^
/Users/lbir0005/issm/trunk/externalpackages/petsc/install/include/petsctao.h:238:1: note: 'TaoGetGradientVector' has been explicitly marked deprecated here
PETSC_DEPRECATED_FUNCTION("Use TaoGetGradient() (since version 3.17)") static inline PetscErrorCode TaoGetGradientVector(Tao t,Vec *v) { return TaoGetGradient(t,v,NULL,NULL); }
^
/Users/lbir0005/issm/trunk/externalpackages/petsc/install/include/petscconf.h:11:53: note: expanded from macro 'PETSC_DEPRECATED_FUNCTION'
#define PETSC_DEPRECATED_FUNCTION(why) __attribute((deprecated))
^
3 warnings and 1 error generated.
make[2]: *** [cores/libISSMCore_la-controltao_core.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
I got things to work using Version 3.15.2
(i.e., the version number listed in install-3.15-mac-arm.sh
.