Changeset 24357


Ignore:
Timestamp:
11/19/19 14:15:23 (5 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixing tria input serve for higher order interpolation

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

Legend:

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

    r24353 r24357  
    40204020
    40214021        /*Save generated inputs: */
    4022         _error_("Fix this mess");
    4023         this->AddInput(new DoubleArrayInput(SmbDzEnum,dz,m));
    4024         this->AddInput(new DoubleArrayInput(SmbDEnum,d,m));
    4025         this->AddInput(new DoubleArrayInput(SmbReEnum,re,m));
    4026         this->AddInput(new DoubleArrayInput(SmbGdnEnum,gdn,m));
    4027         this->AddInput(new DoubleArrayInput(SmbGspEnum,gsp,m));
    4028         this->AddInput(new DoubleArrayInput(SmbTEnum,T,m));
    4029         this->AddInput(new DoubleInput(SmbECEnum,sumEC/dt/rho_ice));
    4030         this->AddInput(new DoubleArrayInput(SmbWEnum,W,m));
    4031         this->AddInput(new DoubleArrayInput(SmbAEnum,a,m));
     4022        this->inputs2->SetArrayInput(SmbDzEnum,this->lid,dz,m);
     4023        this->inputs2->SetArrayInput(SmbDEnum,this->lid,d,m);
     4024        this->inputs2->SetArrayInput(SmbReEnum,this->lid,re,m);
     4025        this->inputs2->SetArrayInput(SmbGdnEnum,this->lid,gdn,m);
     4026        this->inputs2->SetArrayInput(SmbGspEnum,this->lid,gsp,m);
     4027        this->inputs2->SetArrayInput(SmbTEnum,this->lid,T,m);
     4028        this->inputs2->SetArrayInput(SmbWEnum,this->lid,W,m);
     4029        this->inputs2->SetArrayInput(SmbAEnum,this->lid,a,m);
     4030        this->inputs2->SetArrayInput(SmbAEnum,this->lid,a,m);
     4031        this->SetElementInput(SmbECEnum,sumEC/dt/rho_ice);
    40324032        this->SetElementInput(SmbMassBalanceEnum,(sumP + sumEC -sumR)/dt/rho_ice);
    40334033        this->SetElementInput(SmbMeltEnum,sumM/dt/rho_ice);
  • issm/trunk-jpl/src/c/classes/Elements/Tria.cpp

    r24352 r24357  
    20212021                                input->Serve(this->lid,numindices);
    20222022                                break;
    2023                         default: _error_("interpolation "<<EnumToStringx(interpolation)<<" not supported");
     2023                        default:
     2024                                input->Serve(this->lid,this->GetNumberOfNodes(interpolation));
     2025                                break;
    20242026                }
    20252027                return;
Note: See TracChangeset for help on using the changeset viewer.