Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F61292820
poisson.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 5, 18:19
Size
621 B
Mime Type
text/x-c
Expires
Tue, May 7, 18:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17491601
Attached To
R7871 phys-743-exercises
poisson.cc
View Options
/* -------------------------------------------------------------------------- */
#include "simulation.hh"
/* -------------------------------------------------------------------------- */
#include <chrono>
#include <iostream>
#include <tuple>
/* -------------------------------------------------------------------------- */
#define N 256
#define EPSILON 0.005
int
main
()
{
Simulation
simu
(
N
,
N
);
simu
.
set_initial_conditions
();
simu
.
set_epsilon
(
EPSILON
);
float
l2
;
int
k
;
std
::
tie
(
l2
,
k
)
=
simu
.
compute
();
std
::
cout
<<
"nb steps "
<<
k
<<
" [l2 = "
<<
l2
<<
"]"
<<
std
::
endl
;
return
0
;
}
Event Timeline
Log In to Comment