test_fastmath

Module

Description

This module performs unit tests of the fast sqrt routines

References:

None

Owner:

Daniel Price

Runtime parameters:

None

Dependencies:

fastmath, io, mpiutils, random

Quick access

Routines:

test_math()

Variables

Subroutines and functions

subroutine  testmath/test_math(ntests, npass, usefsqrt, usefinvsqrt)
Parameters:
  • ntests [integer,inout]

  • npass [integer,inout]

  • usefsqrt [logical,out]

  • usefinvsqrt [logical,out]

Use :

io (id(), master()), fastmath (checksqrt(), testsqrt(), finvsqrt()), random (ran2()), mpiutils (barrier_mpi())

Call to:

testsqrt(), ran2(), checksqrt()