MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
NumericalSolution.f90 File Reference

Go to the source code of this file.

Data Types

type  numericalsolutionmodule::numericalsolutiontype
interface  numericalsolutionmodule::synchronize_iface

Modules

module  numericalsolutionmodule

Functions/Subroutines

subroutine, public numericalsolutionmodule::create_numerical_solution (num_sol, filename, id)
 Create a new solution.
subroutine numericalsolutionmodule::allocate_scalars (this)
 Allocate scalars.
subroutine numericalsolutionmodule::allocate_arrays (this)
 Allocate arrays.
subroutine numericalsolutionmodule::sln_df (this)
 Define the solution.
subroutine numericalsolutionmodule::sln_ar (this)
 Allocate and read data.
subroutine numericalsolutionmodule::sln_dt (this)
 Calculate delt.
subroutine numericalsolutionmodule::sln_ad (this)
 Advance solution.
subroutine numericalsolutionmodule::sln_ot (this)
 Output solution.
subroutine numericalsolutionmodule::sln_fp (this)
 Finalize solution.
subroutine numericalsolutionmodule::sln_da (this)
 Deallocate solution.
subroutine numericalsolutionmodule::sln_ca (this, isgcnvg, isuppress_output)
 Solve solution.
subroutine numericalsolutionmodule::writecsvheader (this)
 CSV header.
subroutine numericalsolutionmodule::writeptcinfotofile (this, kper)
 PTC header.
subroutine numericalsolutionmodule::preparesolve (this)
 prepare to solve
subroutine numericalsolutionmodule::solve (this, kiter, isuppress_output)
 Build and solve the simulation.
subroutine numericalsolutionmodule::finalizesolve (this, kiter, isgcnvg, isuppress_output)
 finalize a solution
subroutine numericalsolutionmodule::sln_buildsystem (this, kiter, inewton)
subroutine numericalsolutionmodule::convergence_summary (this, iu, im, itertot_timestep)
 Solution convergence summary.
subroutine numericalsolutionmodule::csv_convergence_summary (this, iu, totim, kper, kstp, kouter, niter, istart, kstart)
 Solution convergence CSV summary.
subroutine numericalsolutionmodule::save (this, filename)
 Save solution data to a file.
subroutine numericalsolutionmodule::add_model (this, mp)
 Add a model.
type(listtype) function, pointer numericalsolutionmodule::get_models (this)
 Get a list of models.
subroutine numericalsolutionmodule::add_exchange (this, exchange)
 Add exchange.
type(listtype) function, pointer numericalsolutionmodule::get_exchanges (this)
 Returns a pointer to the list of exchanges in this solution.
subroutine numericalsolutionmodule::sln_connect (this)
 Assign solution connections.
subroutine numericalsolutionmodule::sln_reset (this)
 Reset the solution.
subroutine numericalsolutionmodule::sln_ls (this, kiter, kstp, kper, in_iter, iptc, ptcf)
 Solve the linear system of equations.
subroutine numericalsolutionmodule::sln_setouter (this, ifdparam)
 Set default Picard iteration variables.
subroutine numericalsolutionmodule::sln_backtracking (this, mp, cp, kiter)
 Perform backtracking.
subroutine numericalsolutionmodule::sln_backtracking_xupdate (this, bt_flag)
 Backtracking update of the dependent variable.
integer(i4b) function numericalsolutionmodule::get_backtracking_flag (this)
 Check if backtracking should be applied for this solution,.
integer(i4b) function numericalsolutionmodule::sln_get_idvscale (this)
 Check if dependent variable scalining should be applied for this solution,.
subroutine numericalsolutionmodule::apply_backtracking (this)
 Update x with backtracking.
subroutine numericalsolutionmodule::sln_l2norm (this, l2norm)
 Calculate the solution L-2 norm for all active cells using.
subroutine numericalsolutionmodule::sln_maxval (this, nsize, v, vmax)
 Get the maximum value from a vector.
subroutine numericalsolutionmodule::sln_calcdx (this, neq, active, x, xtemp, dx)
 Calculate dependent-variable change.
subroutine numericalsolutionmodule::sln_calc_ptc (this, iptc, ptcf)
 Calculate pseudo-transient continuation factor.
subroutine numericalsolutionmodule::sln_calc_residual (this, vec_resid)
 Calculate the current residual vector r = A*x - b,.
subroutine numericalsolutionmodule::sln_underrelax (this, kiter, bigch, neq, active, x, xtemp)
 Under-relaxation.
subroutine numericalsolutionmodule::sln_get_dxmax (this, hncg, lrch)
 Determine maximum dependent-variable change.
logical(lgp) function numericalsolutionmodule::sln_has_converged (this, max_dvc)
integer(i4b) function numericalsolutionmodule::sln_package_convergence (this, dpak, cpakout, iend)
 Check package convergence.
integer(i4b) function numericalsolutionmodule::sln_sync_newtonur_flag (this, inewtonur)
 Synchronize Newton Under-relaxation flag.
logical(lgp) function numericalsolutionmodule::sln_nur_has_converged (this, dxold_max, hncg)
 Custom convergence check for when Newton UR has been applied.
subroutine numericalsolutionmodule::sln_get_loc (this, nodesln, str)
 Get cell location string.
subroutine numericalsolutionmodule::sln_get_nodeu (this, nodesln, im, nodeu)
 Get user node number.
class(numericalsolutiontype) function, pointer, public numericalsolutionmodule::castasnumericalsolutionclass (obj)
 Cast a object as a Numerical Solution.
class(numericalsolutiontype) function, pointer, public numericalsolutionmodule::getnumericalsolutionfromlist (list, idx)
 Get a numerical solution.

Variables

integer(i4b), parameter numericalsolutionmodule::ims_solver = 1
integer(i4b), parameter numericalsolutionmodule::petsc_solver = 2