Changeset 4994


Ignore:
Timestamp:
08/04/10 20:34:26 (15 years ago)
Author:
Eric.Larour
Message:

Improved MeshProfileIntersectionx, was ignoring segments inside elements.
Improved qmu setup to include surface and bed inputs. still not working though.
Made new plot for qmu mass flux segmnets.

Location:
issm/trunk/src
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/MeshProfileIntersectionx/ElementSegment.cpp

    r4852 r4994  
    8585                segments_dataset->AddObject(new  Segment(el+1,xfinal[0],yfinal[0],xfinal[1],yfinal[1]));
    8686        }
     87        else{
     88                /*No interesections, but the segment might be entirely inside this triangle!: */
     89                if ( (NodeInElement(xgrids,ygrids,xsegment[0],ysegment[0])) && (NodeInElement(xgrids,ygrids,xsegment[1],ysegment[1])) ){
     90                        segments_dataset->AddObject(new  Segment(el+1,xsegment[0],ysegment[0],xsegment[1],ysegment[1]));
     91                }
     92        }
    8793}
  • issm/trunk/src/c/modules/ModelProcessorx/Qmu/CreateParametersQmu.cpp

    r4919 r4994  
    151151                        descriptor=variabledescriptors[i];
    152152
    153                         if ((strcmp(descriptor,"Thickness")==0) ||
    154                                 (strcmp(descriptor,"DragCoefficient")     ==0)
     153                        if ((strcmp(descriptor,"Thickness")==0) || (strcmp(descriptor,"DragCoefficient")     ==0) || (strcmp(descriptor,"Surface")     ==0) || (strcmp(descriptor,"Bed")     ==0)
     154
     155
    155156                                ){
    156157
  • issm/trunk/src/m/classes/public/plot/plot_manager.m

    r4709 r4994  
    4545                        plot_gridnumbering(md,options,subplotwidth,i);
    4646                        return;
     47                case 'qmu_mass_flux_segments',
     48                        plot_qmu_mass_flux_segments(md,options,nlines,ncols,i);
     49                        return;
     50
    4751                case 'highlightgrids',
    4852                        plot_highlightgrids(md,options,subplotwidth,i);
  • issm/trunk/src/m/qmu/setupdesign/QmuSetupDesign.m

    r4491 r4994  
    2929        dvar=setupthickness(dvar,variables,params,varargin{:});
    3030
     31elseif strcmpi(descriptor,'Surface')
     32
     33        dvar=setupsurface(dvar,variables,params,varargin{:});
     34
     35elseif strcmpi(descriptor,'Bed')
     36
     37        dvar=setupbed(dvar,variables,params,varargin{:});
     38
    3139elseif strcmpi(descriptor,'DragCoefficient')
    3240
  • issm/trunk/src/m/utils/Exp/expcreatecircle.m

    r1 r4994  
    1111
    1212%Calculate the cartesians coordinates of the points
    13 x_list=ones(numberofgrids,1);
    14 y_list=ones(numberofgrids,1);
     13x_list=ones(numberofgrids+1,1);
     14y_list=ones(numberofgrids+1,1);
    1515
    1616theta=(0:2*pi/numberofgrids:2*pi*(1-1/numberofgrids))';
     17theta=[theta;0];
    1718
    1819x_list=radius*x_list.*cos(theta);
Note: See TracChangeset for help on using the changeset viewer.