Skip to content

Commit

Permalink
1.0.0 updates: "spars(er)" refinement, thread-parallelism, etc
Browse files Browse the repository at this point in the history
- Add additional error checks at start-up.
  • Loading branch information
dengwirda committed Jan 19, 2023
1 parent 595ff4b commit d589b1b
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/geo_load.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,14 @@
return _errv ;
}
}
else
{
_jlog. push (
"**input error: couldn't determine format of GEOM.\n") ;

return __invalid_argument ;
}

return ( _errv ) ;
}

Expand Down
7 changes: 7 additions & 0 deletions src/hfn_load.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1931,6 +1931,13 @@
_errv = __invalid_argument ;
}
}
else
{
_jlog. push (
"**input error: couldn't determine format of HFUN.\n") ;

return __invalid_argument ;
}

return ( _errv ) ;
}
Expand Down
7 changes: 7 additions & 0 deletions src/ini_load.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,13 @@
_errv = __invalid_indexing ;
}
}
else
{
_jlog. push (
"**input error: couldn't determine format of INIT.\n") ;

return __invalid_argument ;
}

return ( _errv ) ;
}
Expand Down
7 changes: 6 additions & 1 deletion src/jigsaw.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,7 @@
_retv = -2 ;

std::cout <<
"run jigsaw jigname.jig";
"Usage: jigsaw user-opts.jig" ;
std::cout << std::endl ;

break ;
Expand Down Expand Up @@ -1665,6 +1665,11 @@
break ;
}
}
if (_retv == -1)
{
std::cout <<
"**parse error: *.jig file not found!" << std::endl;
}
if (_retv != +0) return ( _retv ) ;

/*--------------------------------- setup *.JLOG file */
Expand Down
7 changes: 6 additions & 1 deletion src/marche.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
_retv = -2 ;

std::cout <<
"run marche jigname.jig";
"Usage: marche user-opts.jig" ;
std::cout << std::endl ;

break ;
Expand Down Expand Up @@ -362,6 +362,11 @@
break ;
}
}
if (_retv == -1)
{
std::cout <<
"**parse error: *.jig file not found!" << std::endl;
}
if (_retv != +0) return ( _retv ) ;

/*--------------------------------- setup *.JLOG file */
Expand Down
7 changes: 6 additions & 1 deletion src/tripod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@
_retv = -2 ;

std::cout <<
"run tripod jigname.jig";
"Usage: tripod user-opts.jig" ;
std::cout << std::endl ;

break ;
Expand Down Expand Up @@ -655,6 +655,11 @@
break ;
}
}
if (_retv == -1)
{
std::cout <<
"**parse error: *.jig file not found!" << std::endl;
}
if (_retv != +0) return ( _retv ) ;

/*--------------------------------- setup *.JLOG file */
Expand Down

0 comments on commit d589b1b

Please sign in to comment.