1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include <stdio.h> #include <stdlib.h> #include "em3d.h" void dealwithargs(int argc, char *argv[]) { if (argc > 1) n_nodes = atoi(argv[1]); else n_nodes = 10; if (argc > 2) d_nodes = atoi(argv[2]); else d_nodes = 3; if (argc > 3) iters = atoi(argv[3]); else iters = 100; }