tds_solve_der2nd Subroutine

public subroutine tds_solve_der2nd(self, d2u, u, tdsops_d2, tdsops_d1)

Second derivative of u on a possibly stretched grid. On a stretched grid d2u/dy2 = vert_ds2d2u/dxi2 + vert_d2s(vert_ds*du/dxi), but tds_solve with a second derivative operator applies only the vert_ds2 factor. This solves the first derivative with tdsops_d1, the second derivative with tdsops_d2, and adds the stretch_correct term of tdsops_d2 times the first derivative.

Type Bound

base_backend_t

Arguments

Type IntentOptional Attributes Name
class(base_backend_t) :: self
class(field_t), intent(inout) :: d2u
class(field_t), intent(in) :: u
class(tdsops_t), intent(in) :: tdsops_d2
class(tdsops_t), intent(in) :: tdsops_d1

Calls

proc~~tds_solve_der2nd~~CallsGraph proc~tds_solve_der2nd m_base_backend::base_backend_t%tds_solve_der2nd proc~get_block m_allocator::allocator_t%get_block proc~tds_solve_der2nd->proc~get_block proc~release_block m_allocator::allocator_t%release_block proc~tds_solve_der2nd->proc~release_block proc~stretch_correct_add_base m_base_backend::base_backend_t%stretch_correct_add_base proc~tds_solve_der2nd->proc~stretch_correct_add_base proc~tds_solve_base m_base_backend::base_backend_t%tds_solve_base proc~tds_solve_der2nd->proc~tds_solve_base proc~create_block m_allocator::allocator_t%create_block proc~get_block->proc~create_block proc~set_shape m_field::field_t%set_shape proc~get_block->proc~set_shape proc~abort_run m_logger::abort_run proc~stretch_correct_add_base->proc~abort_run proc~tds_solve_base->proc~abort_run interface~str m_logger::str proc~abort_run->interface~str mpi_abort mpi_abort proc~abort_run->mpi_abort mpi_barrier mpi_barrier proc~abort_run->mpi_barrier mpi_comm_rank mpi_comm_rank proc~abort_run->mpi_comm_rank mpi_comm_size mpi_comm_size proc~abort_run->mpi_comm_size mpi_finalized mpi_finalized proc~abort_run->mpi_finalized mpi_initialized mpi_initialized proc~abort_run->mpi_initialized

Called by

proc~~tds_solve_der2nd~~CalledByGraph proc~tds_solve_der2nd m_base_backend::base_backend_t%tds_solve_der2nd proc~laplacian m_vector_calculus::vector_calculus_t%laplacian proc~laplacian->proc~tds_solve_der2nd