Changeset 5475


Ignore:
Timestamp:
08/23/10 00:26:56 (15 years ago)
Author:
Eric.Larour
Message:

Now, instead of looking at descriptor, we look for the index in the parameters.
makes MassFluxx look like other types of responses, without special treatment for
special arguments.

Location:
issm/trunk/src/c/modules/MassFluxx
Files:
2 edited

Legend:

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

    r5281 r5475  
    1010#include "../../EnumDefinitions/EnumDefinitions.h"
    1111
    12 void MassFluxx(double* pmass_flux, Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads,Materials* materials, Parameters* parameters,const char* descriptor,bool process_units){
     12void MassFluxx(double* pmass_flux, Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads,Materials* materials, Parameters* parameters,bool process_units){
    1313
    1414        int i,j;
     
    3838        parameters->FindParam(&array,&M,&mdims_array,&ndims_array,QmuMassFluxSegmentsEnum);
    3939
    40         /*figure out counter in the descriptor: */
    41         sscanf(descriptor,"MassFlux%i",&counter);
     40        /*Retrieve index of segments being used for MassFlux computation: */
     41        if(!parameters->FindParam(&counter,IndexEnum))ISSMERROR(" could not find IndexEnum");
    4242
    4343        /*retrieve segments from array: */
     
    7272        xfree((void**)&ndims_array);
    7373        xfree((void**)&array);
    74 
     74       
    7575        /*Assign output pointers: */
    7676        *pmass_flux=mass_flux;
  • issm/trunk/src/c/modules/MassFluxx/MassFluxx.h

    r5281 r5475  
    1010
    1111/* local prototypes: */
    12 void MassFluxx(double* pmass_flux, Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads,Materials* materials, Parameters* parameters,const char* descriptor,bool process_units);
     12void MassFluxx(double* pmass_flux, Elements* elements,Nodes* nodes, Vertices* vertices,Loads* loads,Materials* materials, Parameters* parameters,bool process_units);
    1313
    1414
Note: See TracChangeset for help on using the changeset viewer.