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

small script to test handling of many (e.g. 5000) views
parent a131e83b
No related branches found
No related tags found
No related merge requests found
N = 5000;
Printf("Testing Combine TimeSteps with %g views", N);
For i In {1:N}
View "aa" {SP(0,0,0){i};};
EndFor
Combine TimeSteps;
//Save View[0] "new.pos";
Printf("Done testing Combine");
M = 10;
Printf("Testing leaks with %g allocations of %g views", M, N);
For j In {1:M}
Printf("-- create %g", j);
For i In {1:N}
View "aa" {SP(0,0,0){i};};
EndFor
Printf("-- delete %g", j);
For i In {1:N}
Delete View[0];
EndFor
EndFor
Printf("Done testing leaks");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment