Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64681911
main.cpp
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
Tue, May 28, 16:26
Size
397 B
Mime Type
text/x-c
Expires
Thu, May 30, 16:26 (2 d)
Engine
blob
Format
Raw Data
Handle
17900415
Attached To
rPHPCSHALLOWWATER PHPC project - Shallow water simulation 2019
main.cpp
View Options
#include <iostream>
#include <chrono>
#include "Simulation.h"
#define NX 2001
int
main
()
{
Simulation
sim
(
"../../data/"
,
2001
,
500
,
0.025
);
//Start chronometer
auto
startTime
=
std
::
chrono
::
high_resolution_clock
::
now
();
while
(
sim
.
compute_step
());
std
::
cout
<<
"Perf. = "
<<
sim
.
get_flops_performance
()
/
1e9
<<
"Gflops"
<<
std
::
endl
;
sim
.
save
(
"../Sol.bin"
);
return
0
;
}
Event Timeline
Log In to Comment