Author Topic: Name Space like function naming  (Read 8652 times)

luc

  • Full Member
  • ***
  • Posts: 53
Name Space like function naming
« on: August 18, 2014, 08:50:26 AM »
Hi dear FEAP programmers.
A nice feature of FEAP is the easy transition from serial computation to parallel computation using the interface to PETSc's library.
One issue that arise with PETSc however is that it itself links to multiple external packages.
And while all this is very flexible, each package defines its own functions and this can very easily and quickly lead to linking error.
For example, both FEAP and superlu define the function:   isort
                         both FEAP and chaco   define the functions: grad2d, grad3d, update

This problem can be resolved by renaming the FEAP's functions as:
FeapIsort
FeapGrad2d, FeapGrad3d and FeapUpdate.

I know that this is a burden for every programmer to use codified naming scheme but this would be beneficial on the long run.
Also if at list all identified and know conflict could be reported and resolved for future versions of FEAP it would be great!

Thanks,
Luc

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Name Space like function naming
« Reply #1 on: August 19, 2014, 11:39:20 PM »
Thanks for the suggestion.  This may also explain why SuperLU does not always work correctly!