Octopus
derivatives_test_oct_m Module Reference

This module provides unit tests for the derivatives. More...

Detailed Description

This module provides unit tests for the derivatives.

Functions/Subroutines

subroutine, public derivatives_advanced_benchmark (this, namespace)
 Further unit tests design to challenge numerical stability of the finite differences. More...
 
subroutine testfunc_plane_wave (mesh, ff, grad, lapl, kvec)
 Generate a plane-wave given its momentum, as well as the gradient and the Laplacian. More...
 
subroutine testfunc_polynomial (mesh, ff, grad, lapl, p)
 Generate a polyomial of degree p, as well as the gradient and the Laplacian. More...
 
subroutine, public dderivatives_test (this, namespace, repetitions, min_blocksize, max_blocksize)
 unit test for derivatives More...
 
subroutine, public zderivatives_test (this, namespace, repetitions, min_blocksize, max_blocksize)
 unit test for derivatives More...
 

Function/Subroutine Documentation

◆ derivatives_advanced_benchmark()

subroutine, public derivatives_test_oct_m::derivatives_advanced_benchmark ( type(derivatives_t), intent(in)  this,
type(namespace_t), intent(in)  namespace 
)

Further unit tests design to challenge numerical stability of the finite differences.

Definition at line 149 of file derivatives_test.F90.

◆ testfunc_plane_wave()

subroutine derivatives_test_oct_m::testfunc_plane_wave ( type(mesh_t), intent(in)  mesh,
real(real64), dimension(:), intent(out)  ff,
real(real64), dimension(:, :), intent(out)  grad,
real(real64), dimension(:), intent(out)  lapl,
real(real64), dimension(3), intent(in)  kvec 
)
private

Generate a plane-wave given its momentum, as well as the gradient and the Laplacian.

Definition at line 221 of file derivatives_test.F90.

◆ testfunc_polynomial()

subroutine derivatives_test_oct_m::testfunc_polynomial ( type(mesh_t), intent(in)  mesh,
real(real64), dimension(:), intent(out)  ff,
real(real64), dimension(:, :), intent(out)  grad,
real(real64), dimension(:), intent(out)  lapl,
integer, intent(in)  p 
)
private

Generate a polyomial of degree p, as well as the gradient and the Laplacian.

Definition at line 256 of file derivatives_test.F90.

◆ dderivatives_test()

subroutine, public derivatives_test_oct_m::dderivatives_test ( type(derivatives_t), intent(in)  this,
type(namespace_t), intent(in)  namespace,
integer, intent(in)  repetitions,
integer, intent(in)  min_blocksize,
integer, intent(in)  max_blocksize 
)

unit test for derivatives

This will be called from the test run mode.

Definition at line 372 of file derivatives_test.F90.

◆ zderivatives_test()

subroutine, public derivatives_test_oct_m::zderivatives_test ( type(derivatives_t), intent(in)  this,
type(namespace_t), intent(in)  namespace,
integer, intent(in)  repetitions,
integer, intent(in)  min_blocksize,
integer, intent(in)  max_blocksize 
)

unit test for derivatives

This will be called from the test run mode.

Definition at line 726 of file derivatives_test.F90.