Changeset 26363


Ignore:
Timestamp:
07/26/21 14:36:12 (4 years ago)
Author:
Mathieu Morlighem
Message:

BUG: cannot handle P0 controls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/cores/control_core.cpp

    r24335 r26363  
    249249
    250250        /*Constrain Gradient*/
    251         for(int i=0;i<num_controls;i++){
    252                 for(int j=0;j<numvertices;j++){
    253                         G[i*numvertices+j] = scalar*G[i*numvertices+j];
    254                 }
     251        for(int i=0;i<nsize;i++){
     252                G[i] = scalar*G[i];
    255253        }
    256254
Note: See TracChangeset for help on using the changeset viewer.