Skip to content

Commit fca826d

Browse files
committed
Added tabulation of different residuals by topology
1 parent 25a543e commit fca826d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/analysis/nekbone.R

+12
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,18 @@ nb_bi <- rbind(
196196
nba %>% group_by(topology) %>%
197197
filter(cg_residual == min(cg_residual)) %>% slice_head())
198198
format(as.data.frame(nb_bi), digits = 17)
199+
200+
# Also print out for the non-simulated date
201+
message("Printing out default and talapas residuals")
202+
for (topo in c('native-16', 'native-36', 'talapas-16', 'torus-2-4-9')) {
203+
nba <- nbf %>%
204+
group_by(topology, algo) %>%
205+
filter(topology == topo) %>%
206+
distinct(cg_residual)
207+
cat(paste('unique results =', length(unique(nba$cg_residual)), "\n"))
208+
print(format(as.data.frame(nba), digits = 17))
209+
}
210+
199211
# On second thought, this isn't so useful as a plot :(
200212
# min_res_all <- min(nbt_all$cg_residual)
201213
# p <- ggplot(nb_bi, aes(x = algo, y = cg_residual)) +

0 commit comments

Comments
 (0)