Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120704703
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
Sun, Jul 6, 10:56
Size
397 B
Mime Type
text/x-c
Expires
Tue, Jul 8, 10:56 (2 d)
Engine
blob
Format
Raw Data
Handle
27233886
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