[petsc-users] Fortran preprocessor not work in pets-dev

Danyang Su danyang.su at gmail.com
Sat May 6 19:12:27 CDT 2023


Hi All,

 

My code has some FPP. It works fine in PETSc 3.18 and earlier version, but stops working in the latest PETSc-Dev. For example the following FPP STANDARD_FORTRAN is not recognized. 

 

#ifdef STANDARD_FORTRAN

    1 format(15x,1000a15)

    2 format(1pe15.6e3,1000(1pe15.6e3))

#else

    1 format(15x,<ncol>a15)    

    2 format(1pe15.6e3,<ncol>(1pe15.6e3))

#endif

 

In the makefile, I define the preprocessor as PPFLAGS.

 

PPFLAGS := -DLINUX -DRELEASE -DRELEASE_X64 -DSTANDARD_FORTRAN

…

exe: $(OBJS) chkopts

                -${FLINKER} $(FFLAGS) $(FPPFLAGS) $(CPPFLAGS) -o $(EXENAME) $(OBJS) ${PETSC_LIB} ${LIS_LIB} ${DLIB} ${SLIB}

 

Any idea on this problem?

 

All the best,

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230506/0be36012/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure-dev.log
Type: application/octet-stream
Size: 7341624 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230506/0be36012/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure-3.18.log
Type: application/octet-stream
Size: 11768439 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230506/0be36012/attachment-0003.obj>


More information about the petsc-users mailing list