1. petsc
  2. PETSc
  3. petsc

Commits

Satish Balay  committed 2af240f

if --download-c-blas-lapack is provided - suggest --download-f2cblaslapack

Hg-commit: bf1664afdaffd8c1fd26afd51b03622572e41632

  • Participants
  • Parent commits d6b6a2d
  • Branches master

Comments (0)

Files changed (1)

File config/configure.py

View file
         raise ValueError('The option '+opt+' should probably be '+opt.replace('ifneeded', '1'));
   return
 
+def check_for_option_changed(opts):
+# Document changes in command line options here.
+  optMap = [('c-blas-lapack','f2cblaslapack')]
+  for opt in opts[1:]:
+    optname = opt.split('=')[0].strip('-')
+    for oldname,newname in optMap:
+      if optname.find(oldname) >=0:
+        raise ValueError('The option '+opt+' should probably be '+opt.replace(oldname,newname))
+  return
+
 def check_petsc_arch(opts):
   # If PETSC_ARCH not specified - use script name (if not configure.py)
   global petsc_arch
     # Command line arguments take precedence (but don't destroy argv[0])
     sys.argv = sys.argv[:1] + configure_options + sys.argv[1:]
     check_for_option_mistakes(sys.argv)
+    check_for_option_changed(sys.argv)
   except (TypeError, ValueError), e:
     emsg = str(e)
     if not emsg.endswith('\n'): emsg = emsg+'\n'