![]() |
PandA-2024.02
|

Go to the source code of this file.
Data Structures | |
| struct | photon |
Macros | |
| #define | SHELL_MAX 101 |
| Tiny MCML benchmark. More... | |
| #define | NUMPHOTONS 16 |
Functions | |
| fixedpt | get_uniform_fixed (int *seed) |
| void | processPhoton (int seed) |
| void | process () |
| int | main () |
Variables | |
| const fixedpt | mu_a = 131072 |
| const fixedpt | mu_s = 1310720 |
| const fixedpt | microns_per_shell = 327680 |
| const long | photons = NUMPHOTONS |
| const fixedpt | albedo = 59578 |
| const fixedpt | shells_per_mfp = 595782 |
| fixedpt | heat [SHELL_MAX] = {0} |
| #define NUMPHOTONS 16 |
Definition at line 7 of file tiny_fixed.c.
| #define SHELL_MAX 101 |
Tiny MCML benchmark.
"Simulates light propagation from a point source in an infinite medium with isotropic scattering." Original source: http://omic.ogi.edu/software/mc
Definition at line 6 of file tiny_fixed.c.
Referenced by main(), and processPhoton().
| fixedpt get_uniform_fixed | ( | int * | seed | ) |
Definition at line 25 of file tiny_fixed.c.
References k.
Referenced by processPhoton().

| int main | ( | void | ) |
| void process | ( | ) |
Definition at line 105 of file tiny_fixed.c.
References max, offset, photons, processPhoton(), and seeds.
Referenced by main().


| void processPhoton | ( | int | seed | ) |
Definition at line 53 of file tiny_fixed.c.
References albedo, fixedpt_div(), FIXEDPT_FBITS, fixedpt_ln(), fixedpt_mul(), FIXEDPT_ONE, fixedpt_sqrt(), get_uniform_fixed(), heat, test_panda::shell, SHELL_MAX, shells_per_mfp, photon::u, photon::v, photon::w, photon::weight, photon::x, photon::y, and photon::z.
Referenced by process().


| const fixedpt albedo = 59578 |
Definition at line 21 of file tiny_fixed.c.
Referenced by processPhoton().
Definition at line 23 of file tiny_fixed.c.
Referenced by main(), and processPhoton().
| const fixedpt microns_per_shell = 327680 |
Definition at line 18 of file tiny_fixed.c.
| const fixedpt mu_a = 131072 |
Definition at line 16 of file tiny_fixed.c.
| const fixedpt mu_s = 1310720 |
Definition at line 17 of file tiny_fixed.c.
| const long photons = NUMPHOTONS |
Definition at line 20 of file tiny_fixed.c.
Referenced by process().
| const fixedpt shells_per_mfp = 595782 |
Definition at line 22 of file tiny_fixed.c.
Referenced by processPhoton().
1.8.13