Ignore:
Timestamp:
05/12/10 08:19:37 (15 years ago)
Author:
Eric.Larour
Message:

Bulk of solutions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Elements/Sing.cpp

    r3717 r3732  
    9090        if (iomodel->vy) this->inputs->AddInput(new SingVertexInput(VyEnum,iomodel->vy[i]));
    9191        if (iomodel->vz) this->inputs->AddInput(new SingVertexInput(VzEnum,iomodel->vz[i]));
    92         if (iomodel->vx_obs) this->inputs->AddInput(new SingVertexInput(VxEnum,iomodel->vx_obs[i]));
    93         if (iomodel->vy_obs) this->inputs->AddInput(new SingVertexInput(VyEnum,iomodel->vy_obs[i]));
    94         if (iomodel->vz_obs) this->inputs->AddInput(new SingVertexInput(VzEnum,iomodel->vz_obs[i]));
     92        if (iomodel->vx_obs) this->inputs->AddInput(new SingVertexInput(VxObsEnum,iomodel->vx_obs[i]));
     93        if (iomodel->vy_obs) this->inputs->AddInput(new SingVertexInput(VyObsEnum,iomodel->vy_obs[i]));
     94        if (iomodel->vz_obs) this->inputs->AddInput(new SingVertexInput(VzObsEnum,iomodel->vz_obs[i]));
    9595        if (iomodel->weights) this->inputs->AddInput(new SingVertexInput(WeightsEnum,iomodel->weights[i]));
     96        if (!iomodel->vx && iomodel->vx_obs){
     97                this->inputs->AddInput(new SingVertexInput(VxEnum,iomodel->vx_obs[i]));
     98                this->inputs->AddInput(new SingVertexInput(VxOldEnum,iomodel->vx_obs[i]));
     99        }
     100        if (!iomodel->vy && iomodel->vy_obs){
     101                this->inputs->AddInput(new SingVertexInput(VyEnum,iomodel->vy_obs[i]));
     102                this->inputs->AddInput(new SingVertexInput(VyOldEnum,iomodel->vy_obs[i]));
     103        }
     104        if (!iomodel->vz && iomodel->vz_obs){
     105                this->inputs->AddInput(new SingVertexInput(VzEnum,iomodel->vz_obs[i]));
     106                this->inputs->AddInput(new SingVertexInput(VzOldEnum,iomodel->vz_obs[i]));
     107        }
     108
    96109
    97110        //this->parameters: we still can't point to it, it may not even exist. Configure will handle this.
Note: See TracChangeset for help on using the changeset viewer.