[petsc-dev] please fix your bugs in next! error: 'SNESCompositeGetNumber' was not declared in this scope
Satish Balay
balay at mcs.anl.gov
Tue Nov 25 11:42:30 CST 2014
The relavent commit is:
>>>>>>
commit 6b2b7f7bcb48548709a46ae3e973244865b14f7a
Author: Patrick Farrell <patrick.farrell at imperial.ac.uk>
Date: Thu Nov 20 16:05:42 2014 +0000
Add a function to get the number of subsneses in a SNESCOMPOSITE.
<<<<<<<
However I don't see the corresponding branch
>>>>>>
$ git branch -r --contains 6b2b7f7bc
origin/next
<<<<<<
Looking at next history - I see the merge commit as:
>>>>>
commit 7deaeafb548c56ebd72003c8eb58fab332a617be
Merge: 2ce25a1 6b2b7f7
Author: Matthew G. Knepley <knepley at gmail.com>
Date: Thu Nov 20 10:51:43 2014 -0600
Merge remote-tracking branch 'pefarrell/snes-composite-get-number' into next
* pefarrell/snes-composite-get-number:
Add a function to get the number of subsneses in a SNESCOMPOSITE.
<<<<<<<
The following is the fix
>>>>>>>>>>>>
$ git diff |cat
diff --git a/include/petscsnes.h b/include/petscsnes.h
index 60d93b7..e880997 100644
--- a/include/petscsnes.h
+++ b/include/petscsnes.h
@@ -739,6 +739,7 @@ PETSC_EXTERN PetscErrorCode SNESCompositeSetType(SNES,SNESCompositeType);
PETSC_EXTERN PetscErrorCode SNESCompositeAddSNES(SNES,SNESType);
PETSC_EXTERN PetscErrorCode SNESCompositeGetSNES(SNES,PetscInt,SNES *);
PETSC_EXTERN PetscErrorCode SNESCompositeSetDamping(SNES,PetscInt,PetscReal);
+PETSC_EXTERN PetscErrorCode SNESCompositeGetNumber(SNES,PetscInt *);
/*E
SNESFASType - Determines the type of nonlinear multigrid method that is run.
<<<<<<<<<<<<
cc:ing Matt and Patrick.
Satish
On Tue, 25 Nov 2014, Barry Smith wrote:
>
> You push it into next you are responsible for fixing it when it breaks
>
>
>
> CXX arch-freebsd-cxx-pkgs-opt/obj/src/snes/impls/ls/ls.o
> /usr/home/balay/petsc.clone-2/src/snes/impls/composite/ftn-auto/snescompositef.c: In function 'void snescompositegetnumber_(_p_SNES*, PetscInt*, int*)':
> /usr/home/balay/petsc.clone-2/src/snes/impls/composite/ftn-auto/snescompositef.c:58: error: 'SNESCompositeGetNumber' was not declared in this scope
> make[1]: *** [arch-freebsd-cxx-pkgs-opt/obj/src/snes/impls/composite/ftn-auto/snescompositef.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: Leaving directory `/usr/home/balay/petsc.clone-2'
> make: *** [gnumake] Error 2
> make: Leaving directory `/usr/home/balay/petsc.clone-2'
> /usr/home/balay/petsc.clone-2/src/snes/impls/composite/ftn-auto/snescompositef.c: In function 'void snescompositegetnumber_(_p_SNES*, PetscInt*, int*)':
> /usr/home/balay/petsc.clone-2/src/snes/impls/composite/ftn-auto/snescompositef.c:58: error: 'SNESCompositeGetNumber' was not declared in this scope
> make[1]: *** [arch-freebsd-cxx-pkgs-opt/obj/src/snes/impls/composite/ftn-auto/snescompositef.o] Error 1
>
>
More information about the petsc-dev
mailing list