Changeset 25306


Ignore:
Timestamp:
07/28/20 21:12:30 (5 years ago)
Author:
Eric.Larour
Message:

CHG: fixed issue with transient bottom pressures getting destroyed into Tria Inputs that are not transient!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/cores/sealevelchange_core.cpp

    r25304 r25306  
    763763               
    764764                        /*Go find the modelid'th transient input:*/
    765                         TriaInput2* tria_input=dataset_input->GetTriaInputByOffset(reCast<int, IssmDouble>(modelid));
    766                         /*Plug back into DslSeaWaterPressureChangeAtSeaFloor*/
    767                         tria_input->ChangeEnum(DslSeaWaterPressureChangeAtSeaFloor);
     765                        TransientInput2* transient_input=dataset_input->GetTransientInputByOffset(reCast<int, IssmDouble>(modelid));
     766
     767                        /*Plug into DslDynamicRate input: */
     768                        Input2* transient_input_copy=transient_input->copy();
     769                        transient_input_copy->ChangeEnum(DslSeaWaterPressureChangeAtSeaFloor);
     770                        femmodel->inputs2->AddInput(transient_input_copy);
    768771                }
    769772        }
Note: See TracChangeset for help on using the changeset viewer.