From a47da9b3403927e3f2f8f2ad177f54811e9a06bb Mon Sep 17 00:00:00 2001 From: Taichi Gardener Date: Fri, 27 Mar 2020 09:01:56 -0400 Subject: [PATCH] [skip ci] enforce code format --- examples/mgpcg_advanced.py | 9 ++++----- taichi/platform/opengl/opengl_api.cpp | 4 +--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/mgpcg_advanced.py b/examples/mgpcg_advanced.py index bf714857a0b072..46dce072ef4242 100644 --- a/examples/mgpcg_advanced.py +++ b/examples/mgpcg_advanced.py @@ -36,15 +36,14 @@ def __init__(self): shape=(self.N_gui, self.N_gui)) # image buffer indices = ti.ijk if self.dim == 3 else ti.ij - self.grid = ti.root.pointer(indices, - [self.N_tot // 4]).dense(indices, 4).place( - self.x, self.p, self.Ap) + self.grid = ti.root.pointer(indices, [self.N_tot // 4]).dense( + indices, 4).place(self.x, self.p, self.Ap) for l in range(self.n_mg_levels): self.grid = ti.root.pointer(indices, [self.N_tot // (4 * 2**l)]).dense( - indices, 4).place( - self.r[l], self.z[l]) + indices, + 4).place(self.r[l], self.z[l]) ti.root.place(self.alpha, self.beta, self.sum) diff --git a/taichi/platform/opengl/opengl_api.cpp b/taichi/platform/opengl/opengl_api.cpp index 3320c84476a2fa..5e648593555d27 100644 --- a/taichi/platform/opengl/opengl_api.cpp +++ b/taichi/platform/opengl/opengl_api.cpp @@ -313,9 +313,7 @@ bool is_opengl_api_available() { return false; } -void initialize_opengl() { - TI_NOT_IMPLEMENTED -} +void initialize_opengl(){TI_NOT_IMPLEMENTED} GLProgram *compile_glsl_program(std::string source) { TI_NOT_IMPLEMENTED