Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicente Mataix Ferrándiz committed Jan 18, 2017
1 parent 3273c41 commit c169c66
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions applications/MeshingApplication/custom_utilities/mmg_utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ class MmgUtility
std::cout << "//--------------- BEFORE REMESHING ---------------//" << std::endl;
std::cout << "//---------------------------------------------------//" << std::endl;
std::cout << "//---------------------------------------------------//" << std::endl;
std::cout << std::endl;

KRATOS_WATCH(rThisModelPart);

Expand Down Expand Up @@ -203,7 +204,10 @@ class MmgUtility
{
auto itNode = pNode.begin() + i;

SetNodes(itNode->X(), itNode->Y(), itNode->Z(), node_colors[itNode->Id()], itNode->Id());
SetNodes(itNode->X(), itNode->Y(), itNode->Z(), node_colors[itNode->Id()], i + 1);

// RESETING THE ID OF THE NODES (important for non consecutive meshes)
itNode->SetId(i + 1);
}

/* Conditions */
Expand All @@ -212,7 +216,7 @@ class MmgUtility
{
auto itCond = pConditions.begin() + i;

SetConditions(itCond->GetGeometry()[0].Id() ,itCond->GetGeometry()[1].Id() ,itCond->GetGeometry()[2].Id(), cond_colors[itCond->Id()], itCond->Id());
SetConditions(itCond->GetGeometry()[0].Id() ,itCond->GetGeometry()[1].Id() ,itCond->GetGeometry()[2].Id(), cond_colors[itCond->Id()], i + 1);
}

/* Elements */
Expand All @@ -221,7 +225,7 @@ class MmgUtility
{
auto itElem = pElements.begin() + i;

SetElements(itElem->GetGeometry()[0].Id() ,itElem->GetGeometry()[1].Id() ,itElem->GetGeometry()[2].Id(), itElem->GetGeometry()[3].Id(), elem_colors[itElem->Id()], itElem->Id());
SetElements(itElem->GetGeometry()[0].Id() ,itElem->GetGeometry()[1].Id() ,itElem->GetGeometry()[2].Id(), itElem->GetGeometry()[3].Id(), elem_colors[itElem->Id()], i + 1);
}

////////* SOLUTION FILE *////////
Expand Down Expand Up @@ -511,6 +515,7 @@ class MmgUtility
std::cout << "//--------------- AFTER REMESHING ---------------//" << std::endl;
std::cout << "//---------------------------------------------------//" << std::endl;
std::cout << "//---------------------------------------------------//" << std::endl;
std::cout << std::endl;

KRATOS_WATCH(rThisModelPart);
}
Expand Down

0 comments on commit c169c66

Please sign in to comment.