aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlanfer <lanfer@1d96b42b-98df-4a6a-9d84-1b24288d4588>1999-09-13 13:16:34 +0000
committerlanfer <lanfer@1d96b42b-98df-4a6a-9d84-1b24288d4588>1999-09-13 13:16:34 +0000
commit777dd97165113011b9e1d0ca558217dafe9e7aae (patch)
tree7fff844244dfc7692160ccc4c609dbf3eb9f7d12
parent0ff887be74bdf6d9ae514710e8f07395c2dd76d7 (diff)
simpler fetchign of commandline args
git-svn-id: http://svn.cactuscode.org/arrangements/CactusElliptic/EllPETSc/trunk@7 1d96b42b-98df-4a6a-9d84-1b24288d4588
-rw-r--r--src/petsc_confmetric_solver.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/petsc_confmetric_solver.c b/src/petsc_confmetric_solver.c
index 3664673..49fe8a2 100644
--- a/src/petsc_confmetric_solver.c
+++ b/src/petsc_confmetric_solver.c
@@ -178,20 +178,16 @@ void petsc_confmetric_solver(cGH *GH, int *MetricPsiI, int MetricPsiISize,
/* Things to do on first iteration */
if (trips==0) {
- int argc,i;
+ int CCTK_GetCommandLine(char ***outargv);
+ int argc;
char **argv;
#ifdef DEBUG
if (debug)
printf("PETSc: initial trip: %d \n",trips);
#endif
-
/* Get the commandline arguments */
- argc = CCTK_GetArgc();
- argv = (char**) malloc ((argc+1)*sizeof(char*));
- for (i=0;i<argc;i++)
- argv[i] = (char*) malloc (256*sizeof(char));
- CCTK_GetArgv(argv);
+ argc = CCTK_GetCommandLine(&argv);
/* Set the PETSc communicator to set of PUGH and
initialzie PETSc */