aboutsummaryrefslogtreecommitdiffstats
path: root/test/c/spectral.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/c/spectral.c')
-rw-r--r--test/c/spectral.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/c/spectral.c b/test/c/spectral.c
index f7dc90ee..dca78fe0 100644
--- a/test/c/spectral.c
+++ b/test/c/spectral.c
@@ -43,7 +43,11 @@ void eval_AtA_times_u(int N, const double u[], double AtAu[])
int main(int argc, char *argv[])
{
int i;
+#ifdef __K1C__
+ int N = ((argc == 2) ? atoi(argv[1]) : 11);
+#else
int N = ((argc == 2) ? atoi(argv[1]) : 1000);
+#endif
double * u, * v, vBv, vv;
u = malloc(N * sizeof(double));
v = malloc(N * sizeof(double));