Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pdebuyl/mtprng
https://github.com/pdebuyl/mtprng
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pdebuyl/mtprng
- Owner: pdebuyl
- License: other
- Created: 2015-02-05T08:59:24.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-05T08:59:30.000Z (almost 10 years ago)
- Last Synced: 2023-04-05T02:28:16.538Z (over 1 year ago)
- Language: FORTRAN
- Size: 125 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
Mersenne Twister pseudo random number generator
1. Overview
This is a f95 library that implements the Mersenne Twister
RNG. It is based on code by Scott Robert Ladd.2. In order to use this library, do the following:
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=WHERE_YOU_WANT_TO_INSTALL ..
make
make installYou can install either as a system library (to /usr/local/ or to
/opt/mtprng-vxxx (where xxx is the version number) or to a working
directory of a larger code.
You may and should specify your C and Fortran compiler via the
-D CMAKE_C_COMPILER=/full/path/to/compiler
-D CMAKE_Fortran_COMPILER=/full/path/to/compiler
options.to use, follow the example fortran file, and compile with
gfortran -o prog prog.f90 -I/path/to/include -L/path/to/lib \
-lmtprng