Changeset 18027
- Timestamp:
- 05/20/14 10:01:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/cores/controlvalidation_core.cpp
r18010 r18027 34 34 35 35 /*Allocate Gradient and current vector*/ 36 G = xNew< double>(n);37 X = xNew< double>(n);36 G = xNew<IssmDouble>(n); 37 X = xNew<IssmDouble>(n); 38 38 39 39 /*out of solution_type, figure out solution core and adjoint function pointer*/ … … 55 55 IssmDouble incr = -0.2; 56 56 IssmDouble exp1 = -8.; 57 int num = int((exp1-exp0)/incr);57 int num = reCast<int>((exp1-exp0)/incr); 58 58 59 59 /*Allocate output*/ … … 92 92 /*Clean up and return*/ 93 93 xDelete<IssmDouble>(G); 94 xDelete<IssmDouble>(X); 95 xDelete<IssmDouble>(X0); 94 96 }
Note:
See TracChangeset
for help on using the changeset viewer.