sandialabs / LCM

Laboratory for Computational Mechanics
Other
12 stars 7 forks source link

Failing builds due to stk changes #71

Closed ikalash closed 1 year ago

ikalash commented 1 year ago

Nightly LCM builds are failing due to apparent changes to STK:

/home/lcm/LCM/LCM/src/disc/stk/percept/stk_rebalance/GeomDecomp.cpp:54:58: error: no matching function for call to ‘stk::mesh::Field<double, stk::mesh::Cartesian3d>::max_size(const EntityRank&) const’
         const unsigned ndim(nodal_coor.max_size(NODE_RANK));  // TODO - is there a better way to get this info?
                                                          ^
In file included from /home/lcm/LCM/trilinos-install-serial-gcc-release/include/stk_mesh/base/Field.hpp:40,
                 from /home/lcm/LCM/LCM/src/./disc/stk/percept/stk_rebalance/Partition.hpp:44,
                 from /home/lcm/LCM/LCM/src/./disc/stk/percept/stk_rebalance/GeomDecomp.hpp:15,
                 from /home/lcm/LCM/LCM/src/disc/stk/percept/stk_rebalance/GeomDecomp.cpp:12:
/home/lcm/LCM/trilinos-install-serial-gcc-release/include/stk_mesh/base/FieldBase.hpp:147:12: note: candidate: ‘unsigned int stk::mesh::FieldBase::max_size() const’
   unsigned max_size() const;

Seems this was fixed by the following PR: https://github.com/sandialabs/Albany/pull/967 . We'll need something similar in LCM.

I will try to fix this soon.