SHTnsSpheres
Documentation for SHTnsSpheres.
SHTnsSpheres.SHTnsSphere
SHTnsSpheres.Writable
SHTnsSpheres.erase
SHTnsSpheres.readable
SHTnsSpheres.shtns_use_threads
SHTnsSpheres.writable
SHTnsSpheres.SHTnsSphere
— Typesph = SHTnsSphere(nlat, nthreadsThreads.nthreads())
Returns a SHTnsSphere corresponding to a lat-lon mesh of size nlat×2nlat and spectral truncation 2nlat/3 (i.e. T21 and 32×64 for nlat=32)
SHTnsSpheres.Writable
— TypeWraps data to mark it as writeable.
SHTnsSpheres.erase
— Methody = erase(x)
Some functions need to make copies of input arguments to avoid modifying their contents and remain pure. Passing erase(x)
as input argument is equivalent to passing x
, except that it explicitly allows to modify the contents of x
, thus avoiding copying and allocating.
SHTnsSpheres.readable
— MethodUnwrap input argument. Used internally when we can promise that x will not be modified.
SHTnsSpheres.shtns_use_threads
— Functionnum_threads = shtns_use_threads(num_threads)
Call before any initialization of shtns to use mutliple threads. Returns the actual number of threads. If numthreads > 0, specifies the maximum number of threads that should be used. If numthreads <= 0, maximum number of threads is automatically set to the number of processors. If num_threads == 1, openmp will be disabled.
SHTnsSpheres.writable
— MethodUnwrap input argument. Used internally when we cannot promise that x will not be modified.