Skip to content
Snippets Groups Projects
Commit fa8d976f authored by Francois Henrotte's avatar Francois Henrotte
Browse files

moved declaration of srgc and srgv

parent c0332cd5
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,8 @@ static int vsnprintf(char *str, size_t size, const char *fmt, va_list ap)
void Msg::Init(int argc, char **argv)
{
int sargc = 0;
char **sargv = new char*[argc];
#if defined(HAVE_MPI)
int flag;
MPI_Initialized(&flag);
......@@ -87,8 +89,6 @@ void Msg::Init(int argc, char **argv)
#endif
#if defined(HAVE_PETSC)
// prune argv from stuff that confuses PETSc
int sargc = 0;
char **sargv = new char*[argc];
for(int i = 0; i < argc; i++){
std::string val(argv[i]);
if(val != "-info" && val != "-help" && val != "-v")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment