Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77925059
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
Sat, Aug 17, 06:20
Size
621 B
Mime Type
text/x-c
Expires
Mon, Aug 19, 06:20 (2 d)
Engine
blob
Format
Raw Data
Handle
19941022
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