Skip to content

Commit a271219

Browse files
committed
Fix failing CAPI example
1 parent c0b83dd commit a271219

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/cpp/get-subgrids.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ int main() {
136136

137137
// Check the values of the node entries.
138138
assert(node_values_index[0] == 5442.30542919352900); // PyAPI: `subgrid.node_values[0][16]`
139-
assert(node_values_index[1] == 0.03052158400782889); // PyAPI: `subgrid.node_values[1][20]`
140-
assert(node_values_index[2] == 0.03052158400782889); // PyAPI: `subgrid.node_values[2][20]`
139+
assert(node_values_index[1] == 0.03052158400782890); // PyAPI: `subgrid.node_values[1][20]`
140+
assert(node_values_index[2] == 0.03052158400782890); // PyAPI: `subgrid.node_values[2][20]`
141141

142142
// PyAPI: `grid.subgrid(0, 0, 0).to_array(subgrid.shape)[16][20][20]`
143-
assert(subgrid_array[index] == -4.936156925096015e-07);
143+
assert(subgrid_array[index] == -4.936156925096021e-07);
144144
}
145145
break;
146146
}

0 commit comments

Comments
 (0)