From 54cc5bb013d79c5830a0cf7f2c2680fb42a97738 Mon Sep 17 00:00:00 2001 From: Peter Willendrup Date: Sat, 27 Jan 2024 09:24:08 +0100 Subject: [PATCH] Correct format identifier in printfs --- mcstas-comps/optics/Monochromator_curved.comp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcstas-comps/optics/Monochromator_curved.comp b/mcstas-comps/optics/Monochromator_curved.comp index e1dc27d981..b53f8199a3 100644 --- a/mcstas-comps/optics/Monochromator_curved.comp +++ b/mcstas-comps/optics/Monochromator_curved.comp @@ -195,13 +195,13 @@ INITIALIZE tiltH=calloc((int)2*(NH+1),sizeof(double)); tiltV=calloc((int)2*(NV+1),sizeof(double)); - if (!tiltH) printf("Monochromator_curved: %s: Warning: not enough memory to allocate tilts (NH=%g).\n", NAME_CURRENT_COMP, NH); + if (!tiltH) printf("Monochromator_curved: %s: Warning: not enough memory to allocate tilts (NH=%i).\n", NAME_CURRENT_COMP, NH); else if (RH) { /* pre-compute tilts */ for (i=0;i<=NH;i++){ tiltH[i]=asin((i-(NH+1)/2.0)*(SlabWidth+gap)/RH); } } - if (!tiltV) printf("Monochromator_curved: %s: Warning: not enough memory to allocate tilts (NV=%g).\n", NAME_CURRENT_COMP, NV); + if (!tiltV) printf("Monochromator_curved: %s: Warning: not enough memory to allocate tilts (NV=%i).\n", NAME_CURRENT_COMP, NV); else if (RV) { for (i=0;i<=NV;i++){ tiltV[i]=-asin((i-(NV+1)/2.0)*(SlabHeight+gap)/RV);