diff --git a/Mesh/3D_Mesh_Tetgen.cpp b/Mesh/3D_Mesh_Tetgen.cpp index 2ff9102a36f64468925f5624afca87b17e758407..8cde1cb44bd60284d7f66590da60e9bc1e6bd5d9 100644 --- a/Mesh/3D_Mesh_Tetgen.cpp +++ b/Mesh/3D_Mesh_Tetgen.cpp @@ -1,4 +1,4 @@ -// $Id: 3D_Mesh_Tetgen.cpp,v 1.4 2006-01-06 00:34:26 geuzaine Exp $ +// $Id: 3D_Mesh_Tetgen.cpp,v 1.5 2006-01-15 19:28:26 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -129,8 +129,8 @@ int Mesh_Tetgen(Volume * vol) { in.facetmarkerlist[i] = s->iEnt; } - snprintf(opts, 128, "pqa%f%c", (float)CTX.mesh.quality, - (CTX.verbosity < 3)? 'Q': (CTX.verbosity > 6)? 'V': '\0'); + sprintf(opts, "pqa%f%c", (float)CTX.mesh.quality, + (CTX.verbosity < 3)? 'Q': (CTX.verbosity > 6)? 'V': '\0'); Msg(STATUS3, "Meshing with volume constraint %f", (float)CTX.mesh.quality); tetrahedralize(opts, &in, &out); diff --git a/Mesh/BDS.h b/Mesh/BDS.h index c3b957cc32f907f6a1131f861ce242855246dd43..7eb0383f780238e1d8304b305649aa84ef5b2f28 100644 --- a/Mesh/BDS.h +++ b/Mesh/BDS.h @@ -29,6 +29,7 @@ #include <set> #include <map> #include <vector> +#include <algorithm> #include <list> #include <math.h> diff --git a/contrib/NR/nrutil.h b/contrib/NR/nrutil.h index 436193de5e59b9f071990f489ecfa5cd4e3146d6..4b277537856f50d073304a0ec6862781cdbfc690 100644 --- a/contrib/NR/nrutil.h +++ b/contrib/NR/nrutil.h @@ -52,7 +52,7 @@ static int iminarg1,iminarg2; #if defined(__STDC__) || defined(ANSI) || defined(NRANSI) /* ANSI */ void nrerror(char error_text[]); -float *vector(long nl, long nh); +//float *vector(long nl, long nh); int *ivector(long nl, long nh); unsigned char *cvector(long nl, long nh); unsigned long *lvector(long nl, long nh);