mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix code on platforms for which sizeof(double)!=sizeof(double*).
This commit is contained in:
parent
6b8e89e098
commit
c711133b45
@ -373,7 +373,7 @@ wells_add(enum well_type type ,
|
||||
W->depth_ref[nw] = depth_ref;
|
||||
|
||||
if (zfrac != NULL) {
|
||||
memcpy(W->zfrac + 3*nw, zfrac, 3 * sizeof W->zfrac);
|
||||
memcpy(W->zfrac + 3*nw, zfrac, 3 * sizeof *W->zfrac);
|
||||
}
|
||||
|
||||
W->well_connpos[nw + 1] = off + nperf;
|
||||
|
Loading…
Reference in New Issue
Block a user