"Mark F. Adams" <[email protected]> writes:

> And I'm a bit puzzled because I don't know how '-random_seed 1' could
> be used in GAMG to compute eigen estimates...

Look at PetscRandomSetFromOptions.

  ierr = PetscOptionsInt("-random_seed","Seed to use to generate random 
numbers","PetscRandomSetSeed",0,&seed,&set);CHKERRQ(ierr);
  if (set) {
    ierr = PetscRandomSetSeed(rnd,(unsigned long int)seed);CHKERRQ(ierr);
    ierr = PetscRandomSeed(rnd);CHKERRQ(ierr);
  }

Otherwise the default seed is used, but that changes for repeat solves.

Attachment: pgpeZX3tmlomN.pgp
Description: PGP signature

Reply via email to