[petsc-dev] BlasLapack: does f2c and mangling=='underscore' occur?
Jed Brown
jedbrown at mcs.anl.gov
Fri May 17 10:53:07 CDT 2013
I'm trying to understand the logic behind this sequence to append the
underscore before self.libraries.check
prefix = self.getPrefix()
if self.f2c:
if self.mangling == 'underscore':
routine = prefix+baseName+'_'
else:
routine = prefix+baseName
else:
routine = prefix+baseName
https://bitbucket.org/petsc/petsc/src/7a2b0e13c17634dbfc357d19b73eb2e60349bceb/config/BuildSystem/config/packages/BlasLapack.py?at=master#cl-517
versus the several other places that simply use
self.getPrefix()+routine
If it's working now, it seems like the condition
self.fc2 and self.mangling == 'underscore'
does not occur, in which case we could simplify the code. Is that
indeed the case?
More information about the petsc-dev
mailing list