forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[workspace] Upgrade petsc to latest release v3.17.1 (RobotLocomotion#…
…17273) Co-authored-by: Betsy McPhail <betsy.mcphail@kitware.com> Co-authored-by: Xuchen Han <xuchen.han@tri.global>
- Loading branch information
1 parent
7037a35
commit 8e2da89
Showing
13 changed files
with
73 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- src/sys/objects/pname.c | ||
+++ src/sys/objects/pname.c | ||
@@ -131,7 +131,7 @@ PetscErrorCode PetscObjectName(PetscObject obj) | ||
@@ -127,7 +127,7 @@ PetscErrorCode PetscObjectName(PetscObject obj) | ||
/* If the union has extra bytes, their value is implementation-dependent, but they will normally be what we set last | ||
* in 'ucomm.ptr = NULL'. This output is always implementation-defined (and varies from run to run) so the union | ||
* abuse acceptable. */ | ||
- ierr = PetscSNPrintf(name,64,"%s_%p_%D",obj->class_name,ucomm.ptr,counter->namecount++);CHKERRQ(ierr); | ||
+ ierr = PetscSNPrintf(name,64,"%s_%p_%D",obj->class_name,ucomm.ptr,atomic_fetch_add(&counter->atomic_namecount,1));CHKERRQ(ierr); | ||
ierr = PetscStrallocpy(name,&obj->name);CHKERRQ(ierr); | ||
- PetscCall(PetscSNPrintf(name,64,"%s_%p_%" PetscInt_FMT,obj->class_name,ucomm.ptr,counter->namecount++)); | ||
+ PetscCall(PetscSNPrintf(name,64,"%s_%p_%" PetscInt_FMT,obj->class_name,ucomm.ptr,atomic_fetch_add(&counter->atomic_namecount,1))); | ||
PetscCall(PetscStrallocpy(name,&obj->name)); | ||
} | ||
PetscFunctionReturn(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
Do not load unused packages to reduce build footprint | ||
--- src/sys/dll/reg.c | ||
+++ src/sys/dll/reg.c | ||
@@ -114,9 +114,6 @@ PETSC_INTERN PetscErrorCode PetscInitialize_DynamicLibraries(void) | ||
@@ -112,9 +112,6 @@ PETSC_INTERN PetscErrorCode PetscInitialize_DynamicLibraries(void) | ||
#if defined(PETSC_USE_SINGLE_LIBRARY) | ||
ierr = AOInitializePackage();CHKERRQ(ierr); | ||
ierr = PetscSFInitializePackage();CHKERRQ(ierr); | ||
PetscCall(AOInitializePackage()); | ||
PetscCall(PetscSFInitializePackage()); | ||
-#if !defined(PETSC_USE_COMPLEX) | ||
- ierr = CharacteristicInitializePackage();CHKERRQ(ierr); | ||
- PetscCall(CharacteristicInitializePackage()); | ||
-#endif | ||
ierr = ISInitializePackage();CHKERRQ(ierr); | ||
ierr = VecInitializePackage();CHKERRQ(ierr); | ||
ierr = MatInitializePackage();CHKERRQ(ierr); | ||
@@ -124,8 +121,6 @@ PETSC_INTERN PetscErrorCode PetscInitialize_DynamicLibraries(void) | ||
ierr = PCInitializePackage();CHKERRQ(ierr); | ||
ierr = KSPInitializePackage();CHKERRQ(ierr); | ||
ierr = SNESInitializePackage();CHKERRQ(ierr); | ||
- ierr = TSInitializePackage();CHKERRQ(ierr); | ||
- ierr = TaoInitializePackage();CHKERRQ(ierr); | ||
PetscCall(ISInitializePackage()); | ||
PetscCall(VecInitializePackage()); | ||
PetscCall(MatInitializePackage()); | ||
@@ -123,7 +120,5 @@ PETSC_INTERN PetscErrorCode PetscInitialize_DynamicLibraries(void) | ||
PetscCall(KSPInitializePackage()); | ||
PetscCall(SNESInitializePackage()); | ||
- PetscCall(TSInitializePackage()); | ||
- PetscCall(TaoInitializePackage()); | ||
#else | ||
SETERRQ(PETSC_COMM_WORLD,PETSC_ERR_SUP,"Cannot use -library_preload with multiple static PETSc libraries"); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters