[26740] | 1 | Index: ../trunk-jpl/src/c/classes/Elements/Tria.cpp
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/c/classes/Elements/Tria.cpp (revision 26275)
|
---|
| 4 | +++ ../trunk-jpl/src/c/classes/Elements/Tria.cpp (revision 26276)
|
---|
| 5 | @@ -6136,7 +6136,7 @@
|
---|
| 6 | bool computeviscous = false;
|
---|
| 7 | int horiz;
|
---|
| 8 | bool istime=true;
|
---|
| 9 | - IssmDouble timeacc=0;
|
---|
| 10 | + IssmDouble timeacc=0.;
|
---|
| 11 | IssmDouble start_time,final_time;
|
---|
| 12 | int nt,precomputednt;
|
---|
| 13 |
|
---|
| 14 | @@ -6211,7 +6211,7 @@
|
---|
| 15 | this->parameters->FindParam(&timeacc,SolidearthSettingsTimeAccEnum);
|
---|
| 16 | this->parameters->FindParam(&start_time,TimesteppingStartTimeEnum);
|
---|
| 17 | this->parameters->FindParam(&final_time,TimesteppingFinalTimeEnum);
|
---|
| 18 | - nt=reCast<int>((final_time-start_time)/timeacc)+1;
|
---|
| 19 | + nt=reCast<int,IssmDouble>((final_time-start_time)/timeacc)+1;
|
---|
| 20 | }
|
---|
| 21 | else{
|
---|
| 22 | nt=1; //in elastic, or if we run only rigid, we need only one step
|
---|
| 23 | @@ -6820,7 +6820,7 @@
|
---|
| 24 | this->parameters->FindParam(&timeacc,SolidearthSettingsTimeAccEnum);
|
---|
| 25 | this->parameters->FindParam(&start_time,TimesteppingStartTimeEnum);
|
---|
| 26 | this->parameters->FindParam(&final_time,TimesteppingFinalTimeEnum);
|
---|
| 27 | - nt=reCast<int>((final_time-start_time)/timeacc)+1;
|
---|
| 28 | + nt=reCast<int,IssmDouble>((final_time-start_time)/timeacc)+1;
|
---|
| 29 | }
|
---|
| 30 | else{
|
---|
| 31 | nt=1; //in elastic, or if we run only rigid, we need only one step
|
---|