wiki:PDAF_set_seedvec

PDAF_set_seedvec

This page documents the routine PDAF_set_seedvec of PDAF, which was introduced with PDAF V3.1.

This routine can be used to explicitly set a seed vector which controls the random vector generation. (See also PDAF_set_seedset, which allows to choose a predefined seed vector from 20 different choices)

This is an advanced functionality and one only uses this in special cases (e.g. if one stored the random number seed with PDAF_get_seed and intends to reset the seed.

The interface is:

  SUBROUTINE PDAF_set_seedvec(seedvec)

    INTEGER, INTENT(in) :: seedvec(4)   ! Seed vector (the last element needs to be odd)

Note:

  • One needs to ensure that the last element of seedvec is an odd value (The routine does not check this)
  • Compared to the routine PDAF_set_seedset, this routine allows for a finer control of random numbers
  • The routine can be used in combination with PDAF_get_seedvec.
Last modified 8 hours ago Last modified on Mar 14, 2026, 2:20:41 PM
Note: See TracWiki for help on using the wiki.