Update CMakeFiles, add initial pair potential implementation and tests
This commit is contained in:
parent
6162b27a89
commit
f15eb0cf51
9 changed files with 67 additions and 55 deletions
10
main.cpp
10
main.cpp
|
@ -1,10 +1,10 @@
|
|||
#include "hello_world.h"
|
||||
#include "particle.hpp"
|
||||
#include "vec3.h"
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
std::cout << "Starting CUDA example..." << std::endl; // Using endl to flush
|
||||
check_cuda();
|
||||
launch_hello_cuda();
|
||||
std::cout << "Ending CUDA example" << std::endl; // Using endl to flush
|
||||
Particle<float> test = {
|
||||
{0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, 10};
|
||||
std::cout << test.pos.x << " " << test.pos.y << " " << test.pos.z;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue