find_ndiv()

Description: This function calculates the number of Gaussian quadratures needed to reach an arbitrary tolerance.

Usage

ndiv = find_ndiv(transducer, coordinate_grid, medium, f0);
ndiv = find_ndiv(transducer, coordinate_grid, medium, f0, tol); 

Arguments

Output Parameters

Notes

This function is mainly used by fnm_run when users do not enter the ndiv value. If the desired tolerance cannot be reached with 100 quadratures, the number will be set to 20.