Skip to content

Commit 0b88019

Browse files
committed
Init ModelInfo::velfile and ModelInfo::densfile
1 parent b22215c commit 0b88019

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SeisAcoMod2D/common/modelling.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ typedef struct ModelInfo
4343

4444
float **vel2d, **rho2d; // 2D array to store velocity and density model
4545
float vmax, vmin;
46-
46+
ModelInfo() {
47+
memset(velfile, 0, 224);
48+
memset(densfile, 0, 224);
49+
}
4750
}mod_t;
4851

4952
typedef struct Wavelet

0 commit comments

Comments
 (0)