Nek5000
SEM for Incompressible NS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions/Subroutines
drive2.F90 File Reference

second level drivers called from drive1.F90 More...

Go to the source code of this file.

Functions/Subroutines

subroutine initdim
 Transfer array dimensions to common. More...
 
subroutine initdat
 Initialize and set default values. More...
 
subroutine comment
 No need to comment !! More...
 
subroutine setvar
 Initialize variables. More...
 
subroutine echopar
 Echo the nonzero parameters from the readfile to the logfile. More...
 
subroutine gengeom (igeom)
 Generate geometry data. More...
 
subroutine files
 Defines machine specific input and output file names. More...
 
subroutine settime
 setup time-stepping More...
 
subroutine geneig (igeom)
 Compute eigenvalues. More...
 
subroutine fluid (igeom)
 Driver for solving the incompressible Navier-Stokes equations. More...
 
subroutine heat (igeom)
 Driver for temperature or passive scalar. More...
 
subroutine time00
 zero the ctimer More...
 
subroutine runstat
 print run statistics from ctimer More...
 
subroutine pprint_all (s, n_in, io)
 pretty-print from runstat More...
 
subroutine opcount (ICALL)
 init opcounter More...
 
subroutine dofcnt
 count degrees of freedom More...
 
subroutine print_times (label, num_calls, time, total_time, cum_time)
 
subroutine print_flops (label, flops, mops, time)
 

Detailed Description

second level drivers called from drive1.F90

Definition in file drive2.F90.

Function/Subroutine Documentation

subroutine comment ( )

No need to comment !!

Definition at line 94 of file drive2.F90.

References ctimer::dnekclock().

Referenced by nek_advance(), nek_init(), and nek_solve().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

subroutine dofcnt ( )

count degrees of freedom

Definition at line 1415 of file drive2.F90.

Referenced by nek_init().

+ Here is the caller graph for this function:

subroutine echopar ( )

Echo the nonzero parameters from the readfile to the logfile.

Definition at line 320 of file drive2.F90.

References blank(), chcopy(), exitt(), string::ltrunc(), and set_bytesw_write.

Referenced by nek_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

subroutine files ( )

Defines machine specific input and output file names.

Definition at line 484 of file drive2.F90.

References blank(), chcopy(), string::indx1(), and string::ltrunc().

Referenced by nek_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

subroutine fluid ( integer, intent(inout)  igeom)

Driver for solving the incompressible Navier-Stokes equations.

Current version: (1) Velocity/stress formulation. (2) Constant/variable properties. (3) Implicit/explicit time stepping. (4) Automatic setting of tolerances . (5) Lagrangian/"Eulerian"(operator splitting) modes

Definition at line 732 of file drive2.F90.

References ctimer::dnekclock(), plan4(), settolv(), and unorm().

Referenced by nek_advance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

subroutine geneig ( integer, intent(in)  igeom)

Compute eigenvalues.

Used for automatic setting of tolerances and to find critical time step for explicit mode. Currently eigenvalues are computed only for the velocity mesh.

Definition at line 674 of file drive2.F90.

References eigenv(), and esteig().

Referenced by nek_advance(), and nek_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

subroutine gengeom ( integer, intent(in)  igeom)

Generate geometry data.

Definition at line 412 of file drive2.F90.

References dssum(), gencoor(), geom1(), geom2(), lagmass(), setdef(), setinvm(), sfastax(), and volume().

Referenced by nek_advance(), and nek_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

subroutine heat ( integer, intent(inout)  igeom)

Driver for temperature or passive scalar.

Current version: (1) Varaiable properties. (2) Implicit time stepping. (3) User specified tolerance for the Helmholtz solver (not based on eigenvalues). (4) A passive scalar can be defined on either the temperatur or the velocity mesh. (5) A passive scalar has its own multiplicity (B.C.).

Definition at line 812 of file drive2.F90.

References cdscal(), ctimer::dnekclock(), settolt(), and unorm().

Referenced by nek_advance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

subroutine initdat ( )

Initialize and set default values.

Definition at line 39 of file drive2.F90.

References blank().

Referenced by nek_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

subroutine initdim ( )

Transfer array dimensions to common.

Definition at line 7 of file drive2.F90.

Referenced by nek_init().

+ Here is the caller graph for this function:

subroutine opcount ( integer, intent(in)  ICALL)

init opcounter

Definition at line 1357 of file drive2.F90.

References crecv(), csend(), gop(), iswap(), np, and sort().

Referenced by nek_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

subroutine pprint_all ( character(n_in), intent(in)  s,
integer, intent(in)  n_in,
integer, intent(in)  io 
)

pretty-print from runstat

Definition at line 1311 of file drive2.F90.

References blank(), crecv(), csend(), string::ltrunc(), nekgsync(), and np.

Referenced by runstat().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

subroutine print_flops ( character(*)  label,
integer(i8)  flops,
integer(i8)  mops,
real(dp)  time 
)

Definition at line 1474 of file drive2.F90.

Referenced by runstat().

+ Here is the caller graph for this function:

subroutine print_times ( character(*), intent(in)  label,
integer, intent(in)  num_calls,
real(dp), intent(in)  time,
real(dp), intent(in)  total_time,
real(dp), intent(inout)  cum_time 
)

Definition at line 1460 of file drive2.F90.

Referenced by runstat().

+ Here is the caller graph for this function:

subroutine runstat ( )

print run statistics from ctimer

Definition at line 943 of file drive2.F90.

References blank(), ctimer::dnekclock(), gop(), nek_comm_getstat, np, pprint_all(), print_flops(), print_times(), and ctimer::sum_flops().

Referenced by nek_end().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

subroutine settime ( )

setup time-stepping

Store old time steps and compute new time step, time and timef. Set time-dependent coefficients in time-stepping schemes.

Definition at line 612 of file drive2.F90.

References setabbd(), setbd(), setdt(), and setordbd().

Referenced by nek_advance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

subroutine setvar ( )

Initialize variables.

Definition at line 148 of file drive2.F90.

References exitt(), and setchar().

Referenced by nek_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

subroutine time00 ( )

zero the ctimer

Definition at line 872 of file drive2.F90.

Referenced by nek_init().

+ Here is the caller graph for this function: