Switch times to uint64_t
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <errno.h>
|
||||
#include "navier-stokes.h"
|
||||
#include "driving.h"
|
||||
@@ -27,9 +28,9 @@ typedef struct nstrophy_parameters {
|
||||
double nu;
|
||||
double delta;
|
||||
double L;
|
||||
unsigned int print_freq;
|
||||
uint64_t print_freq;
|
||||
int seed;
|
||||
unsigned int starting_time;
|
||||
uint64_t starting_time;
|
||||
unsigned int driving;
|
||||
unsigned int init;
|
||||
FILE* initfile;
|
||||
@@ -519,7 +520,7 @@ int set_parameter(
|
||||
}
|
||||
}
|
||||
else if (strcmp(lhs,"print_freq")==0){
|
||||
ret=sscanf(rhs,"%u",&(parameters->print_freq));
|
||||
ret=sscanf(rhs,"%lu",&(parameters->print_freq));
|
||||
if(ret!=1){
|
||||
fprintf(stderr, "error: parameter 'print_freq' should be an unsigned integer\n got '%s'\n",rhs);
|
||||
return(-1);
|
||||
@@ -533,7 +534,7 @@ int set_parameter(
|
||||
}
|
||||
}
|
||||
else if (strcmp(lhs,"starting_time")==0){
|
||||
ret=sscanf(rhs,"%u",&(parameters->starting_time));
|
||||
ret=sscanf(rhs,"%lu",&(parameters->starting_time));
|
||||
if(ret!=1){
|
||||
fprintf(stderr, "error: parameter 'starting_time' should be an unsigned integer\n got '%s'\n",rhs);
|
||||
return(-1);
|
||||
|
||||
Reference in New Issue
Block a user