Changeset 16468


Ignore:
Timestamp:
10/18/13 18:34:40 (11 years ago)
Author:
Eric.Larour
Message:

CHG: fixed issues with casting of passive into actives.

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

Legend:

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

    r16461 r16468  
    30913091                        _error_("not implemented...");
    30923092                        break;
    3093                 case P1Enum:
     3093                case P1Enum:{
    30943094
    30953095                        IssmDouble   values[NUMVERTICES];
     
    31013101                        for(int i=0;i<NUMVERTICES;i++) pvalues[i] = reCast<IssmPDouble>(values[i]);
    31023102
    3103                         vector->SetValues(NUMVERTICES,sidlist,values,INS_VAL);
     3103                        vector->SetValues(NUMVERTICES,&sidlist[0],&pvalues[0],INS_VAL);
    31043104                        break;
     3105                                        }
    31053106                default:
    31063107                        _error_("interpolation "<<EnumToStringx(input->GetResultInterpolation())<<" not supported yet");
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r16461 r16468  
    26452645                        _error_("not implemented...");
    26462646                        break;
    2647                 case P1Enum:
     2647                case P1Enum:{
    26482648
    26492649                        IssmDouble   values[NUMVERTICES];
     
    26552655                        for(int i=0;i<NUMVERTICES;i++) pvalues[i] = reCast<IssmPDouble>(values[i]);
    26562656
    2657                         vector->SetValues(NUMVERTICES,sidlist,values,INS_VAL);
     2657                        vector->SetValues(NUMVERTICES,&sidlist[0],&pvalues[0],INS_VAL);
    26582658                        break;
     2659                                        }
    26592660                default:
    26602661                        _error_("interpolation "<<EnumToStringx(input->GetResultInterpolation())<<" not supported yet");
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r16461 r16468  
    610610
    611611                                        }
    612                                         Vector<IssmPDouble> *vector_result = new Vector<IssmDouble>(this->vertices->NumberOfVertices());
     612                                        Vector<IssmPDouble> *vector_result = new Vector<IssmPDouble>(this->vertices->NumberOfVertices());
    613613
    614614                                        /*Fill in vector*/
Note: See TracChangeset for help on using the changeset viewer.