Skip to content

Commit

Permalink
Fix memory error when setting mmg debug info (-mmg-d option).
Browse files Browse the repository at this point in the history
  • Loading branch information
Algiane committed Nov 24, 2023
1 parent f981ff8 commit 5f5a9d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libparmmg_tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ int PMMG_parsar( int argc, char *argv[], PMMG_pParMesh parmesh )
}
}
else if ( !strcmp(pmmgArgv[i],"-mmg-d") ) {
if ( !PMMG_Set_iparameter(parmesh,PMMG_IPARAM_mmgDebug,val) ) {
if ( !PMMG_Set_iparameter(parmesh,PMMG_IPARAM_mmgDebug,1) ) {
ret_val = 0;
goto clean;
}
Expand Down

0 comments on commit 5f5a9d6

Please sign in to comment.