Ignore:
Timestamp:
10/30/13 21:15:33 (11 years ago)
Author:
Eric.Larour
Message:

CHG: make external results active, otherwise we have an issue with MPI type in ADOLC related operations.

File:
1 edited

Legend:

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

    r16545 r16589  
    28642864/*}}}*/
    28652865/*FUNCTION Penta::ResultToVector{{{*/
    2866 void Penta::ResultToVector(Vector<IssmPDouble>* vector,int output_enum){
     2866void Penta::ResultToVector(Vector<IssmDouble>* vector,int output_enum){
    28672867
    28682868        Input* input=this->inputs->GetInput(output_enum);
     
    28752875                case P1Enum:{
    28762876                        IssmDouble  values[NUMVERTICES];
    2877                         IssmPDouble pvalues[NUMVERTICES];
    28782877                        int         connectivity[NUMVERTICES];
    28792878                        int         sidlist[NUMVERTICES];
     
    28822881                        this->GetConnectivityList(&connectivity[0]);
    28832882                        this->GetInputListOnVertices(&values[0],output_enum);
    2884                         for(int i=0;i<NUMVERTICES;i++) pvalues[i] = reCast<IssmPDouble>(values[i])/reCast<IssmPDouble>(connectivity[i]);
    2885 
    2886                         vector->SetValues(NUMVERTICES,&sidlist[0],&pvalues[0],ADD_VAL);
     2883                        for(int i=0;i<NUMVERTICES;i++) values[i] = values[i]/reCast<IssmDouble>(connectivity[i]);
     2884
     2885                        vector->SetValues(NUMVERTICES,&sidlist[0],&values[0],ADD_VAL);
    28872886                        break;
    28882887                                        }
Note: See TracChangeset for help on using the changeset viewer.