From 2eb175b2cf9c18cbe795e12be30f57fc46bd84bb Mon Sep 17 00:00:00 2001 From: Jean-Matthieu Etancelin <jean-matthieu.etancelin@imag.fr> Date: Wed, 20 Feb 2013 15:42:25 +0000 Subject: [PATCH] Examples update --- Examples/levelSet2D.py | 2 +- Examples/levelSet3D.cl | 3 +-- Examples/levelSet3D.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Examples/levelSet2D.py b/Examples/levelSet2D.py index c0c4f8009..248e08300 100644 --- a/Examples/levelSet2D.py +++ b/Examples/levelSet2D.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +#!/bin/env python import time import parmepy as pp import math diff --git a/Examples/levelSet3D.cl b/Examples/levelSet3D.cl index d9ca671dd..996fbf5d6 100644 --- a/Examples/levelSet3D.cl +++ b/Examples/levelSet3D.cl @@ -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) diff --git a/Examples/levelSet3D.py b/Examples/levelSet3D.py index 895917221..ceea32c9c 100644 --- a/Examples/levelSet3D.py +++ b/Examples/levelSet3D.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +#!/bin/env python import time import parmepy as pp import math -- GitLab