Skip to content

Commit

Permalink
Verbosity in mmg2d.
Browse files Browse the repository at this point in the history
  • Loading branch information
Algiane committed Mar 29, 2016
1 parent 5be7c3f commit 4f4a007
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/mmg2d/enforcement_2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int MMG2_bdryenforcement(MMG5_pMesh mesh,MMG5_pSol sol) {
MMG5_pTria pt,pt1;
MMG5_pEdge ped;
int i,j,k,kk,nex,*list,kdep,lon,voy,iel,iare,ied;
int ia,ib,ilon,rnd,idep,*adja,ir,adj,list2[3];//,iadr,ped0,ped1;
int ia,ib,ilon,rnd,idep,*adja,ir,adj,list2[3],iter,nbug;//,iadr,ped0,ped1;
// int iadr2,*adja2,ndel;

_MMG5_SAFE_CALLOC(list,MMG2D_LMAX,int);
Expand Down Expand Up @@ -92,9 +92,11 @@ int MMG2_bdryenforcement(MMG5_pMesh mesh,MMG5_pSol sol) {
}

}

if(nex!=mesh->na) {
if(mesh->info.imprim > 5)
if(mesh->info.imprim > 4)
printf(" ** number of missing edges : %d\n",mesh->na-nex);
nbug = 0;
for(kk=1 ; kk<=mesh->na ; kk++) {
ped = &mesh->edge[kk];
if(!ped->a || ped->base < 0) continue;
Expand Down Expand Up @@ -133,7 +135,8 @@ int MMG2_bdryenforcement(MMG5_pMesh mesh,MMG5_pSol sol) {

/*retournement d'arêtes aleatoirement dans la liste, tant que */
srand(time(NULL));
while (ilon>0) {
iter=0;
while (ilon>0 && iter++<2*lon) {
rnd = (rand()%lon);
k = list[rnd]/3;
if(mesh->info.ddebug) {
Expand Down

0 comments on commit 4f4a007

Please sign in to comment.