We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a64a6b8 + bfa4213 commit 1b69bf8Copy full SHA for 1b69bf8
SeisAcoMod2D/common/modelling.h
@@ -14,6 +14,7 @@
14
#include <iostream>
15
#include <map>
16
#include <string>
17
+#include <cstring>
18
#include <chrono>
19
20
#define TIMER_START() time_start = std::chrono::steady_clock::now();
@@ -68,6 +69,14 @@ typedef struct Job
68
69
int adj, geomflag, fdop, frsf;
70
char jbtype[8], shotfile[224], geomfile[224], logfile[224];
71
char jobname[256], tmppath[512];
72
+ Job() {
73
+ memset(jbtype, 0, 8);
74
+ memset(shotfile, 0, 224);
75
+ memset(geomfile, 0, 224);
76
+ memset(logfile, 0, 224);
77
+ memset(jobname, 0, 256);
78
+ memset(tmppath, 0, 512);
79
+ }
80
}job_t;
81
82
typedef struct Workload
0 commit comments