Changeset 26028


Ignore:
Timestamp:
02/25/21 14:00:53 (4 years ago)
Author:
schlegel
Message:

CHG: explain the find logic more explicitly in the ISMIP comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/examples/ISMIP/runme.m

    r25986 r26028  
    124124
    125125        % periodic boundaries have to be fixed on the sides
    126         % create tabs with the side of the domain
     126        % Find the indices of the sides of the domain, separately for x and y
    127127        % for x
    128         % create maxX #help find
    129         %->
    130 
    131         % create minX
    132         %->
    133 
    134         % for y, max X and minX should be excluded
    135         % create maxY
    136         %->
    137 
    138         % create minY
    139         %->
    140 
    141         % set the node that should be paired together
     128        % create maxX, list of indices where x is equal to max of x (use >> help find)
     129        %->
     130
     131        % create minX, list of indices where x is equal to min of x
     132        %->
     133
     134        % for y
     135        % create maxY, list of indices where y is equal to max of y
     136        %  but not where x is equal to max or min of x
     137        % (i.e, indices in maxX and minX should be excluded from maxY and minY)
     138        %->
     139
     140        % create minY, list of indices where y is equal to max of y
     141        %  but not where x is equal to max or min of x
     142        %->
     143
     144        % set the node that should be paired together, minX with maxX and minY with maxY
    142145        % #md.stressbalance.vertex_pairing
    143146        %->
Note: See TracChangeset for help on using the changeset viewer.