Changeset 21920


Ignore:
Timestamp:
08/09/17 11:55:56 (8 years ago)
Author:
schlegel
Message:

BUG: fixed compilation errors, fmod needs floating points

Location:
issm/trunk-jpl/src/c/classes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Elements/Element.cpp

    r21919 r21920  
    555555
    556556        offset=dynamic_cast<TransientInput*>(input)->GetTimeInputOffset(time_yr);
    557         if (fmod(offset,12)!=1){
    558                 time_clim=floor(dynamic_cast<TransientInput*>(input)->GetTimeByOffset(offset-fmod(offset,12)+1)/yts)*yts;
     557        if (fmod(offset,12.)!=1){
     558                time_clim=floor(dynamic_cast<TransientInput*>(input)->GetTimeByOffset(offset-fmod(offset,12.)+1)/yts)*yts;
    559559        }
    560560
  • issm/trunk-jpl/src/c/classes/Inputs/TransientInput.cpp

    r21917 r21920  
    264264
    265265        if (offset < 0) offset=0;
    266         _assert_(this->timesteps[offset]);
     266        _assert_(offset<this->numtimesteps);
    267267
    268268        return this->timesteps[offset];
Note: See TracChangeset for help on using the changeset viewer.