2
On the Use of Finite Difference Matrix-Vector Products in Newton- Krylov Solvers for Implicit Climate Dynamics with Spectral Elements Impact Objectives Improve nonlinear solver performance with implicit time integration methods which allow for longer time steps within climate dynamics simulations Determine the impact of finite difference matrix- vector products on solver speed and robustness Accomplishments Added the capability to utilize analytic Jacobian-vector products with the Trilinos NOX solver in CAM-SE Determined optimal differencing parameter for finite difference approximation Identified areas for improving solver and preconditioner efficiency by precomputing Jacobian information C. S. Woodward, D. J. Gardner, and K. J. Evans, “On the Use of Finite Difference Matrix-Vector Products in Newton-Krylov Solvers for Implicit Climate Dynamics with Spectral Elements,” Procedia Computer Science, 51, (2015), pp. 2036-2045. DOI: 10.1016/j.procs.2015.05.468 Demonstrated that finite difference approximations are efficient within Newton-Krylov solvers for implicit climate dynamics with spectral element methods Determined that the default differencing parameter is not optimal and a smaller value of 1e-8 yields faster solve times with lager time step sizes Support provided by the BER SciDAC Multiscale project With a 30 min. time step the smaller differencing parameter of 1e-8 improves run times compared to the default of 1e-6

On the Use of Finite Difference Matrix-Vector Products in Newton-Krylov Solvers for Implicit Climate Dynamics with Spectral Elements ImpactObjectives

Embed Size (px)

Citation preview

Page 1: On the Use of Finite Difference Matrix-Vector Products in Newton-Krylov Solvers for Implicit Climate Dynamics with Spectral Elements ImpactObjectives

On the Use of Finite Difference Matrix-Vector Products in Newton-Krylov Solvers for Implicit Climate Dynamics with Spectral Elements

Impact Objectives Improve nonlinear solver performance

with implicit time integration methods which allow for longer time steps within climate dynamics simulations

Determine the impact of finite difference matrix-vector products on solver speed and robustness

Accomplishments• Added the capability to utilize analytic

Jacobian-vector products with the Trilinos NOX solver in CAM-SE

• Determined optimal differencing parameter for finite difference approximation

• Identified areas for improving solver and preconditioner efficiency by precomputing Jacobian information

C. S. Woodward, D. J. Gardner, and K. J. Evans, “On the Use of Finite Difference Matrix-Vector Products in Newton-Krylov Solvers for Implicit Climate Dynamics with Spectral Elements,” Procedia Computer Science, 51, (2015), pp. 2036-2045. DOI: 10.1016/j.procs.2015.05.468

• Demonstrated that finite difference approximations are efficient within Newton-Krylov solvers for implicit climate dynamics with spectral element methods

• Determined that the default differencing parameter is not optimal and a smaller value of 1e-8 yields faster solve times with lager time step sizes

Support provided by the BER SciDACMultiscale project

With a 30 min. time step the smaller differencing parameter of 1e-8 improves run times compared to the default of 1e-6

Page 2: On the Use of Finite Difference Matrix-Vector Products in Newton-Krylov Solvers for Implicit Climate Dynamics with Spectral Elements ImpactObjectives

On the Use of Finite Difference Matrix-Vector Products in Newton-Krylov Solvers for Implicit Climate Dynamics with Spectral Elements

Summary

C. S. Woodward, D. J. Gardner, and K. J. Evans, “On the Use of Finite Difference Matrix-Vector Products in Newton-Krylov Solvers for Implicit Climate Dynamics with Spectral Elements,” Procedia Computer Science, 51, (2015), pp. 2036-2045. DOI: 10.1016/j.procs.2015.05.468

Efficient solutions of global climate models require effectively handling disparate length and time scales. Implicit solution approaches allow time integration of the physical system with a step size governed by accuracy of the processes of interest rather than by stability of the fastest time scales present. Implicit approaches, however, require the solution of nonlinear systems within each time step. Usually, a Newton's method is applied to solve these systems. Each iteration of the Newton's method, in turn, requires the solution of a linear model of the nonlinear system. This model employs the Jacobian of the problem-defining nonlinear residual, but this Jacobian can be costly to form. If a Krylov linear solver is used for the solution of the linear system, the action of the Jacobian matrix on a given vector is required. In the case of spectral element methods, the Jacobian is not calculated but only implemented through matrix-vector products. The matrix-vector multiply can also be approximated by a finite difference approximation which may introduce inaccuracy in the overall nonlinear solver. In this paper, we review the advantages and disadvantages of finite difference approximations of these matrix-vector products for climate dynamics within the spectral element shallow water dynamical core of the Community Atmosphere Model (CAM).

Support provided by the BER SciDACMultiscale project