Skip to content

Commit

Permalink
Adding derivative in GridFunctionVectorData
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas.vogel committed Dec 21, 2018
1 parent 3d0c918 commit a61d4d4
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions ugbase/lib_disc/function_spaces/grid_function_user_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,25 @@ class GridFunctionVectorData
}
}


if(bDeriv){
for(size_t ip = 0; ip < nip; ++ip){
for(int d = 0; d < dim; ++d)
{
const LocalShapeFunctionSet<refDim>& rTrialSpace =
LocalFiniteElementProvider::get<refDim>(roid, m_vlfeID[d]);
// evaluate at shapes at ip
rTrialSpace.shapes(vShape, vLocIP[ip]);

for(size_t sh = 0; sh < vShape.size(); ++sh)
vvvDeriv[ip][d][sh][d] = vShape[sh];
}
}
}


}UG_CATCH_THROW("GridFunctionVectorData: Reference Object: "
<<roid<<", refDim="<<refDim);

if(bDeriv)
UG_THROW("Not implemented.");
}

virtual void operator() (MathVector<dim>& value,
Expand Down

0 comments on commit a61d4d4

Please sign in to comment.