star-4v_s

An invariant property of diffuse random walks
git clone git://git.meso-star.fr/star-4v_s.git
Log | Files | Refs | README | LICENSE

s4vs_args.h (1171B)


      1 /* Copyright (C) 2015-2018, 2021, 2024 |Méso|Star> (contact@meso-star.com)
      2  *
      3  * This program is free software: you can redistribute it and/or modify
      4  * it under the terms of the GNU General Public License as published by
      5  * the Free Software Foundation, either version 3 of the License, or
      6  * (at your option) any later version.
      7  *
      8  * This program is distributed in the hope that it will be useful,
      9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     11  * GNU General Public License for more details.
     12  *
     13  * You should have received a copy of the GNU General Public License
     14  * along with this program. If not, see <http://www.gnu.org/licenses/>. */
     15 
     16 #ifndef S4VS_ARGS_H
     17 #define S4VS_ARGS_H
     18 
     19 #include <rsys/rsys.h>
     20 
     21 struct s4vs_args {
     22   const char* filename; /* May be NULL <=> stdin */
     23   unsigned long nrealisations;
     24   double ks;
     25 };
     26 static const struct s4vs_args S4VS_ARGS_DEFAULT = {NULL, 10000, 0.0};
     27 
     28 extern LOCAL_SYM res_T
     29 s4vs_args_init
     30   (struct s4vs_args* args,
     31    int argc,
     32    char** argv);
     33 
     34 extern LOCAL_SYM void
     35 s4vs_args_release
     36   (struct s4vs_args* args);
     37 
     38 #endif /* S4VS_ARGS_H */