Skip to content

Commit

Permalink
[FIX] Proto: Compile errors after node_idx change
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Mar 16, 2014
1 parent 0c98557 commit aa5f6e1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cf3/solver/actions/Proto/DirichletBC.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct DirichletBCSetter :
lss,
state,
data.var_data(boost::proto::value(boost::proto::child_c<1>(expr))).value(), // old value
boost::proto::value( boost::proto::child_c<0>(expr) ).node_to_lss(data.node_idx),
boost::proto::value( boost::proto::child_c<0>(expr) ).node_to_lss(data.node_idx()),
data.var_data(boost::proto::value(boost::proto::child_c<1>(expr))).offset
);
}
Expand Down Expand Up @@ -96,7 +96,7 @@ struct DirichletBCComponentSetter :
lss,
state,
data.var_data(boost::proto::value(boost::proto::left(boost::proto::child_c<1>(expr)))).value()[vec_component], // old value
boost::proto::value( boost::proto::child_c<0>(expr) ).node_to_lss(data.node_idx),
boost::proto::value( boost::proto::child_c<0>(expr) ).node_to_lss(data.node_idx()),
data.var_data(boost::proto::value(boost::proto::left(boost::proto::child_c<1>(expr)))).offset + vec_component
);
}
Expand Down
2 changes: 1 addition & 1 deletion cf3/solver/actions/Proto/RHSVector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct GetRHSVector :
) const
{
math::LSS::Vector& rhs = expr.rhs();
const int node_idx = expr.node_to_lss(data.node_idx);
const int node_idx = expr.node_to_lss(data.node_idx());
if(node_idx < 0)
throw common::SetupError(FromHere(), "RHS access error: attempt to use node that is not in the LSS");
const Uint sys_idx = node_idx*data.var_data(state).nb_dofs + data.var_data(state).offset;
Expand Down
2 changes: 1 addition & 1 deletion cf3/solver/actions/Proto/SetRHS.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct SetRHSSetter :
, typename impl::data_param data
) const
{
const int node_idx = boost::proto::value( boost::proto::child_c<0>(expr) ).node_to_lss(data.node_idx);
const int node_idx = boost::proto::value( boost::proto::child_c<0>(expr) ).node_to_lss(data.node_idx());
if(node_idx < 0)
return;
const Uint sys_idx = node_idx*data.var_data(boost::proto::value(boost::proto::child_c<1>(expr))).nb_dofs + data.var_data(boost::proto::value(boost::proto::child_c<1>(expr))).offset;
Expand Down
2 changes: 1 addition & 1 deletion cf3/solver/actions/Proto/SetSolution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct SetSolutionSetter :
, typename impl::data_param data
) const
{
const int node_idx = boost::proto::value( boost::proto::child_c<0>(expr) ).node_to_lss(data.node_idx);
const int node_idx = boost::proto::value( boost::proto::child_c<0>(expr) ).node_to_lss(data.node_idx());
if(node_idx < 0)
return;
typedef boost::mpl::int_< VarDataType<typename VarChild<ExprT, 1>::type, DataT>::type::dimension > DimT;
Expand Down
2 changes: 1 addition & 1 deletion cf3/solver/actions/Proto/SolutionVector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct GetSolutionVector :
) const
{
math::LSS::Vector& sol = expr.solution();
const int node_idx = expr.node_to_lss(data.node_idx);
const int node_idx = expr.node_to_lss(data.node_idx());
if(node_idx < 0)
throw common::SetupError(FromHere(), "Error accessing solution: attempt to use node that is not in the LSS");
const Uint sys_idx = node_idx*data.var_data(state).nb_dofs + data.var_data(state).offset;
Expand Down

0 comments on commit aa5f6e1

Please sign in to comment.