Skip to content
Snippets Groups Projects
Commit 3068db83 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

dg : correct binding for functionSolution.get

parent c1912ffc
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,8 @@ void dgFunctionIntegrator::compute(dgDofContainer *sol,fullMatrix<double> &resul ...@@ -26,8 +26,8 @@ void dgFunctionIntegrator::compute(dgDofContainer *sol,fullMatrix<double> &resul
group.getCollocationMatrix().mult(solProxy , solutionQP); group.getCollocationMatrix().mult(solProxy , solutionQP);
fullMatrix<double> IPMatrix = group.getIntegrationPointsMatrix(); fullMatrix<double> IPMatrix = group.getIntegrationPointsMatrix();
for (int iElement=0 ; iElement<group.getNbElements() ;++iElement) { for (int iElement=0 ; iElement<group.getNbElements() ;++iElement) {
solutionQPe.setAsProxy(solutionQP, iElement*nbFields, nbFields );
cacheElement.set(group.getElement(iElement)); cacheElement.set(group.getElement(iElement));
solutionQPe.setAsProxy(solutionQP, iElement*nbFields, nbFields );
for (int iPt =0; iPt< group.getNbIntegrationPoints(); iPt++) { for (int iPt =0; iPt< group.getNbIntegrationPoints(); iPt++) {
const double detJ = group.getDetJ (iElement, iPt); const double detJ = group.getDetJ (iElement, iPt);
for (int k=0;k<nbRowResult;k++){ for (int k=0;k<nbRowResult;k++){
......
...@@ -502,7 +502,7 @@ void function::registerBindings(binding *b){ ...@@ -502,7 +502,7 @@ void function::registerBindings(binding *b){
cb = b->addClass<functionSolution>("functionSolution"); cb = b->addClass<functionSolution>("functionSolution");
cb->setDescription("A function to access the solution. This is a single-instance class, use the 'get' member to access the instance."); cb->setDescription("A function to access the solution. This is a single-instance class, use the 'get' member to access the instance.");
mb = cb->addMethod("get",&functionCoordinates::get); mb = cb->addMethod("get",&functionSolution::get);
mb->setDescription("return the unique instance of this class"); mb->setDescription("return the unique instance of this class");
cb->setParentClass<function>(); cb->setParentClass<function>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment