twerner.h - werner - cellular automata simulation of wind-driven sand transport
HTML git clone git://src.adamsgaard.dk/werner
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
twerner.h (780B)
---
1 #ifndef WERNER_H_
2 #define WERNER_H_
3
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <gsl/gsl_matrix.h>
7
8 void init_rnd_matrix(gsl_matrix* M, double low, double high);
9 void print_matrix(gsl_matrix* M);
10 void werner_iter(
11 gsl_matrix* Z, // matrix with sand slabs
12 int d_l, // wind transport distance
13 double p_ns, // likelihood of deposition in sand-free cell
14 double p_s); // likelihood of deposition in sand-covered cell
15 void werner_loop(
16 gsl_matrix* Z, // matrix with sand slabs
17 long int N_c, // number of iterations
18 int d_l, // wind transport distance
19 double p_ns, // likelihood of deposition in sand-free cell
20 double p_s); // likelihood of deposition in sand-covered cell
21 #endif