diff --git a/src/mmgs/inout_s.c b/src/mmgs/inout_s.c index 08f62a8d..5ea0a560 100644 --- a/src/mmgs/inout_s.c +++ b/src/mmgs/inout_s.c @@ -291,7 +291,7 @@ int MMGS_loadMesh(MMG5_pMesh mesh, const char *filename) { } } - if ( !mesh->npi || !mesh->nti ) { + if ( !mesh->npi || !(mesh->nti+nq) ) { fprintf(stdout," ** MISSING DATA\n"); return -1; }