Skip to content

Commit

Permalink
Merge pull request #723 from jonaslandsgesell/purge_bitrandom
Browse files Browse the repository at this point in the history
removed bitrandom and bitseed
  • Loading branch information
fweik committed Jul 1, 2016
2 parents 0c5c28e + 73d178a commit c466e5b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 21 deletions.
12 changes: 2 additions & 10 deletions doc/tutorials/tcl/01-lennard_jones/01-lennard_jones.tex
Expand Up @@ -904,8 +904,6 @@ \subsubsection{System Setup}
blockfile $cfile write bonds
blockfile $cfile write random
blockfile $cfile write seed
blockfile $cfile write bitrandom
blockfile $cfile write bitseed
}
\end{lstlisting}\vspace{0,2cm}
}
Expand Down Expand Up @@ -951,12 +949,6 @@ \subsubsection{System Setup}
{seed
{16838}
}
{bitrandom
{0 147 2085679233 .... }
}
{bitseed
{16838}
}
...
\end{verbatim}
\vspace{0,2cm}
Expand All @@ -968,11 +960,11 @@ \subsubsection{System Setup}
script. In the third block we find the entire particle data we had
told the \lstinline|save_sim| function to save (id: particle id, pos:
position, v: velocity, : force, q: charge, type). \lstinline|save_sim|
saves interactions, bonds, random, seed, bitrandom and bitseed. In
saves interactions, bonds, random and seed. In
our case the interaction is Lennard-Jones. The bonds block is empty
because the particles are not bound to each other like, for example,
in a polymer. The rest of the blocks contains information (random,
seed, bitrandom and bitseed) to be able to restore the status of the
seed) to be able to restore the status of the
random generator as it was while writing these blocks. What do we
need that for? If we rerun the simulation we will get the same results
after we have set our variables including the random generator
Expand Down
2 changes: 0 additions & 2 deletions doc/tutorials/tcl/01-lennard_jones/scripts/lj_functions.tcl
Expand Up @@ -40,6 +40,4 @@ proc save_sim {cfile parinfo range } {
blockfile $cfile write bonds
blockfile $cfile write random
blockfile $cfile write seed
blockfile $cfile write bitrandom
blockfile $cfile write bitseed
}
2 changes: 0 additions & 2 deletions doc/tutorials/tcl/01-lennard_jones/solutions/lj_functions.tcl
Expand Up @@ -40,6 +40,4 @@ proc save_sim {cfile parinfo range } {
blockfile $cfile write bonds
blockfile $cfile write random
blockfile $cfile write seed
blockfile $cfile write bitrandom
blockfile $cfile write bitseed
}
5 changes: 2 additions & 3 deletions doc/ug/io.tex
Expand Up @@ -427,7 +427,7 @@ \subsection{Reading blocks}
\variant{3} blockfile \var{channel} read auto
\variant{4} blockfile \var{channel} read \alt{particles \asep
interactions \asep bonds \asep variable \asep seed \asep random
\asep bitrandom \asep configs}
\asep configs}
\end{essyntax}
Variants \variant{1} and \variant{2} are the low-level block-reading
Expand All @@ -442,7 +442,7 @@ \subsection{Reading blocks}
this procedure takes over (\var{tag} is the first expression in the
block). For most block types, at least all mentioned above, \ie
\keyword{particles}, \keyword{interactions}, \keyword{bonds},
\keyword{seed}, \keyword{random}, \keyword{bitrandom},
\keyword{seed}, \keyword{random},
\keyword{configs}, and \keyword{variable}, the corresponding
procedure will overwrite the current information with the
information from the block.
Expand Down Expand Up @@ -481,7 +481,6 @@ \subsection{Reading blocks}
blockfile $out write variable all
blockfile $out write interactions
blockfile $out write random
blockfile $out write bitrandom
blockfile $out write particles "id pos type q v f" all
blockfile $out write bonds all
blockfile $out write configs
Expand Down
1 change: 0 additions & 1 deletion packages/mbtools/examples/scripts/main.tcl
Expand Up @@ -301,7 +301,6 @@ for {set k $startk } { $k < $int_n_times } { incr k} {
blockfile $out write tclvariable all
blockfile $out write interactions
blockfile $out write random
blockfile $out write bitrandom
blockfile $out write particles "id pos type p v f" all
blockfile $out write bonds all
blockfile $out write configs
Expand Down
4 changes: 1 addition & 3 deletions packages/mbtools/utils/warmup.tcl
Expand Up @@ -89,7 +89,6 @@ proc ::mbtools::utils::warmup { steps times args } {
blockfile $out write tclvariable all
blockfile $out write interactions
blockfile $out write random
blockfile $out write bitrandom
blockfile $out write particles "id pos type p v f" all
blockfile $out write bonds all
blockfile $out write configs
Expand Down Expand Up @@ -180,7 +179,6 @@ proc ::mbtools::utils::nptwarmup { steps times iparms fparms args } {
blockfile $out write tclvariable all
blockfile $out write interactions
blockfile $out write random
blockfile $out write bitrandom
blockfile $out write particles "id pos type p v f" all
blockfile $out write bonds all
blockfile $out write configs
Expand Down Expand Up @@ -286,4 +284,4 @@ proc ::mbtools::utils::free_warmup { args } {
incr i
}

}
}

0 comments on commit c466e5b

Please sign in to comment.