Changeset 26729


Ignore:
Timestamp:
12/12/21 04:25:43 (3 years ago)
Author:
Mathieu Morlighem
Message:

CHG: minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/jl/core/toolkits.jl

    r26718 r26729  
    127127function Solverx(A::IssmMatrix,b::IssmVector,xold::IssmVector) #{{{
    128128
    129         x = IssmVector(GetSize(xold))
    130         x.vector = (A.matrix\b.vector)
     129        #Initialize output
     130        #x = IssmVector(GetSize(xold))
     131        x = IssmVector(0)
     132
     133        #Solve linear system
     134        x.vector = A.matrix\b.vector
    131135
    132136        return x
     
    134138
    135139end#}}}
    136 
Note: See TracChangeset for help on using the changeset viewer.