Skip to content
Snippets Groups Projects
Commit 2eb175b2 authored by Jean-Matthieu Etancelin's avatar Jean-Matthieu Etancelin
Browse files

Examples update

parent 7ab2c11a
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
#!/bin/env python
import time
import parmepy as pp
import math
......
......@@ -6,7 +6,6 @@ __kernel void initScalar(__global float* scalar,
uint gidY = get_global_id(1);
uint gidZ = get_global_id(2);
uint i;
float r;
float4 pos, center=(float4)(0.35, 0.35, 0.35, 0.0);
for(i=gidX; i<WIDTH; i+=WGN)
{
......@@ -26,7 +25,7 @@ __kernel void initVelocity(__global float* veloX,
uint gidY = get_global_id(1);
uint gidZ = get_global_id(2);
uint i;
float pix,piy,piz,v;
float pix,piy,piz;
float time_term = 1.0;//cos(t*M_PI/3.0f);
for(i=gidX; i<WIDTH; i+=WGN)
......
# -*- coding: utf-8 -*-
#!/bin/env python
import time
import parmepy as pp
import math
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment