Skip to content
Snippets Groups Projects
Commit 999dafa2 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

srand

parent 80bc10e8
Branches
Tags
No related merge requests found
// $Id: OpenFile.cpp,v 1.19 2001-08-11 23:28:34 geuzaine Exp $ // $Id: OpenFile.cpp,v 1.20 2001-09-06 05:25:19 geuzaine Exp $
#include "Gmsh.h" #include "Gmsh.h"
#include "Numeric.h" #include "Numeric.h"
...@@ -111,6 +111,9 @@ void OpenProblem(char *name){ ...@@ -111,6 +111,9 @@ void OpenProblem(char *name){
InitSymbols(); InitSymbols();
Init_Mesh(&M, 1); Init_Mesh(&M, 1);
// Initialize pseudo random mesh generator to the same seed
srand(1);
ParseString(TheOptString); ParseString(TheOptString);
strncpy(CTX.filename,name,255); strncpy(CTX.filename,name,255);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment