1. petsc
  2. PETSc
  3. buildsystem-3.3

Commits

Satish Balay  committed c8d64c3

fix f2003 test to be stricter [fix issue with opensolaris f2003]

  • Participants
  • Parent commits a6a959d
  • Branches default
  • Tags release-3.3

Comments (0)

Files changed (1)

File config/compilers.py

View file
  • Ignore whitespace
   def checkFortran2003(self):
     '''Determine whether the Fortran compiler handles F2003'''
     self.pushLanguage('FC')
-    if self.checkLink(body = '      use,intrinsic :: iso_c_binding\n      Type(C_Ptr),Dimension(:),Pointer :: CArray'):
+    if self.checkLink(body = '''
+      use,intrinsic :: iso_c_binding
+      Type(C_Ptr),Dimension(:),Pointer :: CArray
+      character(kind=c_char),pointer   :: nullc => null()
+      CArray = c_loc(nullc)'''):
       self.addDefine('USING_F2003', 1)
       self.fortranIsF2003 = 1
       self.logPrint('Fortran compiler supports F2003')