Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error in develop branch #138

Closed
AntoineMazuyer opened this issue Aug 27, 2018 · 2 comments
Closed

Compilation error in develop branch #138

AntoineMazuyer opened this issue Aug 27, 2018 · 2 comments

Comments

@AntoineMazuyer
Copy link
Contributor

AntoineMazuyer commented Aug 27, 2018

Describe the bug
Compilation error

/home/amazuyer/dev/geosx/GEOSX/src/components/core/src/managers/BoundaryConditions/BoundaryConditionBase.hpp:658:44: error: cannot call member function ‘void geosx::BoundaryConditionBase::ApplyBoundaryConditionToSystem(geosx::set<long int>&, geosx::real64, geosx::dataRepository::ManagedGroup*, const globalIndex_array&, const integer&, geosx::systemSolverInterface::EpetraBlockSystem*, geosx::systemSolverInterface::BlockIDs, LAMBDA&&) const [with BC_OP = geosx::BcEqual; LAMBDA = geosx::BoundaryConditionBase::ApplyBoundaryConditionToSystem(geosx::set<long int>&, geosx::real64, geosx::dataRepository::ManagedGroup*, const string&, const string&, const integer&, geosx::systemSolverInterface::EpetraBlockSystem*, geosx::systemSolverInterface::BlockIDs) const::<lambda(auto:5)> [with auto:5 = multidimensionalArray::ManagedArray<int, 1, long int>; BC_OP = geosx::BcEqual]::<lambda(geosx::localIndex)>; geosx::set<long int> = SortedArray<long int, long int>; geosx::real64 = double; geosx::globalIndex_array = multidimensionalArray::ManagedArray<long long int, 1, long int>; geosx::integer = int]’ without object
       ApplyBoundaryConditionToSystem<BC_OP>( targetSet,
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
                                              time,
                                              ~~~~~
                                              dataGroup,
                                              ~~~~~~~~~~
                                              dofMap,
                                              ~~~~~~~
                                              dofDim,
                                              ~~~~~~~
                                              blockSystem,
                                              ~~~~~~~~~~~~
                                              blockID,
                                              ~~~~~~~~
                                              [&]( localIndex const a )->real64
                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       {
       ~                                     
         return static_cast<real64>(rtTypes::value( field[a], component ));
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       });
       ~~  

To Reproduce
Clone develop branch try to configure/compile it with gcc 6.3

Expected behavior
Should compile

@AntoineMazuyer
Copy link
Contributor Author

I propose a fix in #139

@klevzoff
Copy link
Contributor

By the way, this is a gcc bug that was fixed in 6.4: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636
But we should still merge this workaround for more compiler support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants