Problem with SNESNEWTONTRDC

17 views
Skip to first unread message

Peter Alt-Epping

unread,
Aug 23, 2022, 6:53:54 AM8/23/22
to pflotr...@googlegroups.com
Hi all,

Just wanted to let you know of the error below that I received when I
compiled the latest version of PFLOTRAN. I have resorted to using an
older version of PFLOTRAN4 without the recent changes to solver.F90 and
the compilation worked fine.

Peter


/storage/homefs/aepping/programs/pflotran4/pflotran/src/pflotran/solver.F90(448):
error #6404: This name does not have a type, and must have an explicit
type.   [SNESNEWTONTRDC]
    case(SNESNEWTONTRDC)
---------^
/storage/homefs/aepping/programs/pflotran4/pflotran/src/pflotran/solver.F90(448):
error #6601: In a CASE statement, the case-value must be a constant
expression.   [SNESNEWTONTRDC]
    case(SNESNEWTONTRDC)
---------^
/storage/homefs/aepping/programs/pflotran4/pflotran/src/pflotran/solver.F90(448):
error #6612: In a CASE statement, the case-value must be of type
INTEGER, CHARACTER, or LOGICAL.   [SNESNEWTONTRDC]
    case(SNESNEWTONTRDC)
---------^
/storage/homefs/aepping/programs/pflotran4/pflotran/src/pflotran/solver.F90(448):
error #6611: The case-value must be of the same type as the case-expr.  
[SNESNEWTONTRDC]
    case(SNESNEWTONTRDC)
---------^
/storage/homefs/aepping/programs/pflotran4/pflotran/src/pflotran/solver.F90(1085):
error #6054: A CHARACTER data type is required in this context.
[SNESNEWTONTRDC]
          solver%snes_type = SNESNEWTONTRDC
-----------------------------^
/storage/homefs/aepping/programs/pflotran4/pflotran/src/pflotran/solver.F90(1092):
error #6054: A CHARACTER data type is required in this context.
[SNESNEWTONTRDC]
          solver%snes_type = SNESNEWTONTRDC
-----------------------------^
compilation aborted for
/storage/homefs/aepping/programs/pflotran4/pflotran/src/pflotran/solver.F90
(code 1)


and


mpiifort -o pmc_subsurface.o -c -O3 -fPIC
-I/storage/homefs/aepping/petsc_22/petsc/include
-I/storage/homefs/aepping/petsc_22/petsc/linux-gnu-intel/include -I.
`pwd`/pmc_subsurface.F90
/storage/homefs/aepping/programs/pflotran4/pflotran/src/pflotran/pmc_subsurface.F90(481):
error #6404: This name does not have a type, and must have an explicit
type.   [SNESNEWTONTRDC]
        case(SNESNEWTONTRDC)
-------------^
/storage/homefs/aepping/programs/pflotran4/pflotran/src/pflotran/pmc_subsurface.F90(481):
error #6601: In a CASE statement, the case-value must be a constant
expression.   [SNESNEWTONTRDC]
        case(SNESNEWTONTRDC)
-------------^
/storage/homefs/aepping/programs/pflotran4/pflotran/src/pflotran/pmc_subsurface.F90(481):
error #6612: In a CASE statement, the case-value must be of type
INTEGER, CHARACTER, or LOGICAL.   [SNESNEWTONTRDC]
        case(SNESNEWTONTRDC)
-------------^
/storage/homefs/aepping/programs/pflotran4/pflotran/src/pflotran/pmc_subsurface.F90(481):
error #6611: The case-value must be of the same type as the case-expr.  
[SNESNEWTONTRDC]
        case(SNESNEWTONTRDC)
-------------^
compilation aborted for
/storage/homefs/aepping/programs/pflotran4/pflotran/src/pflotran/pmc_subsurface.F90
(code 1)
make: *** [pmc_subsurface.o] Error 1



--
Dr. Peter Alt-Epping
aRWI Group, Institute of Geological Sciences
University of Bern
Baltzerstrasse 3
3012 Bern
Switzerland

Tel.: 0041 31 684 8765

Hammond, Glenn E

unread,
Aug 23, 2022, 11:59:04 AM8/23/22
to pflotr...@googlegroups.com
Peter,

Which PETSc version are you using? What is the output from 'git log -1' executed in $PETSC_DIR?

Glenn

> -----Original Message-----
> From: pflotr...@googlegroups.com <pflotr...@googlegroups.com>
> On Behalf Of Peter Alt-Epping
> Sent: Tuesday, August 23, 2022 3:54 AM
> To: pflotr...@googlegroups.com
> Subject: [pflotran-dev: 6151] Problem with SNESNEWTONTRDC
>
> Check twice before you click! This email originated from outside PNNL.
> --
> You received this message because you are subscribed to the Google Groups
> "pflotran-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pflotran-dev...@googlegroups.com.
> To view this discussion on the web visit
> https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroup
> s.google.com%2Fd%2Fmsgid%2Fpflotran-dev%2F6c3e8766-94dc-ef00-e5d0-
> 1d5df303df35%2540geo.unibe.ch&amp;data=05%7C01%7Cglenn.hammond%
> 40pnnl.gov%7C12ffb90ff9644bbdf4a408da84f5c667%7Cd6faa5f90ae240338c0
> 130048a38deeb%7C0%7C0%7C637968488387518210%7CUnknown%7CTWFpb
> GZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI
> 6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=L%2F81Zl3kwJSLp2q6aqmNVSg
> 5JRNuGobIYDwPoq18uFE%3D&amp;reserved=0.
Reply all
Reply to author
Forward
0 new messages