changeset 2564:52707e66fd24

L1d3: Corrected sscanf variable type in l_valve.cxx to remove warning Corrected sscanf variable type from %e to %lf in l_valve.cxx to remove warning message when compiling.
author Wilson Chan <y.chan1@uq.edu.au>
date Tue, 27 Feb 2018 09:51:25 +1000
parents a71929622487
children 3805e549f120
files app/L1d3/source/l_valve.cxx
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/L1d3/source/l_valve.cxx	Tue Feb 27 08:13:25 2018 +1000
+++ b/app/L1d3/source/l_valve.cxx	Tue Feb 27 09:51:25 2018 +1000
@@ -106,7 +106,7 @@
         printf("Empty solution file.\n");
         return FAILURE;
     }
-    nread = sscanf(line, "%d %e %e", &is_open, &open_period, &open_time);
+    nread = sscanf(line, "%d %lf %lf", &is_open, &open_period, &open_time);
     if ( nread != 3 ) {
 	printf( "read_valve_solution(): " );
 	printf( "didn't correctly read is_open, open_period, open_time\n" );