Skip to content

Commit

Permalink
[skip ci] enforce code format
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-gardener committed Mar 27, 2020
1 parent 24bbc4a commit a47da9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 4 additions & 5 deletions examples/mgpcg_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 1 addition & 3 deletions taichi/platform/opengl/opengl_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a47da9b

Please sign in to comment.