SUBROUTINE TimeIntTest( Model,Solver,dt,TransientSimulation )1USE DefUtils23IMPLICIT NONE4!------------------------------------------------------------------------------5TYPE(Solver_t) :: Solver6TYPE(Model_t) :: Model78REAL(KIND=dp) :: dt9LOGICAL :: TransientSimulation10!------------------------------------------------------------------------------11! Local variables12!------------------------------------------------------------------------------13TYPE(Element_t),POINTER :: Element1415LOGICAL :: Found1617INTEGER :: n18REAL(KIND=dp) :: Norm1920TYPE(ValueList_t), POINTER :: BodyForce21REAL(KIND=dp) :: STIFF(1,1), MASS(1,1), LOAD(1), FORCE(1)22!------------------------------------------------------------------------------2324!Initialize the system and do the assembly:25!------------------------------------------26CALL DefaultInitialize()2728Element => GetActiveElement(1)29n = GetElementNOFNodes()30LOAD = 0.0d03132BodyForce => GetBodyForce()33IF ( ASSOCIATED(BodyForce) ) &34Load(1:n) = GetReal( BodyForce, 'Source', Found )3536!Get element local matrix and rhs vector:37!----------------------------------------38STIFF = 0.0d039MASS = 1.0d040FORCE = LOAD4142!Update global matrix and rhs vector from local matrix & vector:43!---------------------------------------------------------------44CALL Default1stOrderTime( MASS, STIFF, FORCE )45CALL DefaultUpdateEquations( STIFF, FORCE )46CALL DefaultFinishBulkAssembly()47CALL DefaultFinishBoundaryAssembly()48CALL DefaultFinishAssembly()49!50! Solve the system and we are done:51! ---------------------------------52Norm = DefaultSolve()53!------------------------------------------------------------------------------5455!------------------------------------------------------------------------------56END SUBROUTINE TimeIntTest57!------------------------------------------------------------------------------585960