mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-08 01:01:11 +00:00
Possibility to dump/retrieve tree on disk. Dump voids particle positions correctly
This commit is contained in:
parent
3088bb5733
commit
8bf13dfb8b
4 changed files with 168 additions and 28 deletions
|
@ -1,6 +1,6 @@
|
|||
/** @file buildObservedVoids_conf.h
|
||||
* @brief The header file for the command line option parser
|
||||
* generated by GNU Gengetopt version 2.22
|
||||
* generated by GNU Gengetopt version 2.22.2
|
||||
* http://www.gnu.org/software/gengetopt.
|
||||
* DO NOT modify this file, since it can be overwritten
|
||||
* @author GNU Gengetopt by Lorenzo Bettini */
|
||||
|
@ -20,10 +20,15 @@ extern "C" {
|
|||
#endif /* __cplusplus */
|
||||
|
||||
#ifndef BUILDOBSERVEDVOIDS_CONF_PACKAGE
|
||||
/** @brief the program name */
|
||||
/** @brief the program name (used for printing errors) */
|
||||
#define BUILDOBSERVEDVOIDS_CONF_PACKAGE "buildObservedVoids"
|
||||
#endif
|
||||
|
||||
#ifndef BUILDOBSERVEDVOIDS_CONF_PACKAGE_NAME
|
||||
/** @brief the complete program name (used for help and version) */
|
||||
#define BUILDOBSERVEDVOIDS_CONF_PACKAGE_NAME "buildObservedVoids"
|
||||
#endif
|
||||
|
||||
#ifndef BUILDOBSERVEDVOIDS_CONF_VERSION
|
||||
/** @brief the program version */
|
||||
#define BUILDOBSERVEDVOIDS_CONF_VERSION "0"
|
||||
|
@ -63,12 +68,18 @@ struct buildObservedVoids_info
|
|||
char * dumpVoids_arg; /**< @brief Dump the particles in void in a file. */
|
||||
char * dumpVoids_orig; /**< @brief Dump the particles in void in a file original value given at command line. */
|
||||
const char *dumpVoids_help; /**< @brief Dump the particles in void in a file help description. */
|
||||
int dumpIds_flag; /**< @brief Dump particle ids (default=off). */
|
||||
const char *dumpIds_help; /**< @brief Dump particle ids help description. */
|
||||
char * ramsesBase_arg; /**< @brief Base directory for ramses. */
|
||||
char * ramsesBase_orig; /**< @brief Base directory for ramses original value given at command line. */
|
||||
const char *ramsesBase_help; /**< @brief Base directory for ramses help description. */
|
||||
int ramsesId_arg; /**< @brief Ramses snapshot id. */
|
||||
char * ramsesId_orig; /**< @brief Ramses snapshot id original value given at command line. */
|
||||
const char *ramsesId_help; /**< @brief Ramses snapshot id help description. */
|
||||
int dumpTree_flag; /**< @brief Dump the void tree (default=off). */
|
||||
const char *dumpTree_help; /**< @brief Dump the void tree help description. */
|
||||
int getTree_flag; /**< @brief Restore tree from file (default=off). */
|
||||
const char *getTree_help; /**< @brief Restore tree from file help description. */
|
||||
|
||||
unsigned int help_given ; /**< @brief Whether help was given. */
|
||||
unsigned int version_given ; /**< @brief Whether version was given. */
|
||||
|
@ -82,8 +93,11 @@ struct buildObservedVoids_info
|
|||
unsigned int gridOutput_given ; /**< @brief Whether gridOutput was given. */
|
||||
unsigned int quiet_given ; /**< @brief Whether quiet was given. */
|
||||
unsigned int dumpVoids_given ; /**< @brief Whether dumpVoids was given. */
|
||||
unsigned int dumpIds_given ; /**< @brief Whether dumpIds was given. */
|
||||
unsigned int ramsesBase_given ; /**< @brief Whether ramsesBase was given. */
|
||||
unsigned int ramsesId_given ; /**< @brief Whether ramsesId was given. */
|
||||
unsigned int dumpTree_given ; /**< @brief Whether dumpTree was given. */
|
||||
unsigned int getTree_given ; /**< @brief Whether getTree was given. */
|
||||
|
||||
} ;
|
||||
|
||||
|
@ -206,7 +220,7 @@ void buildObservedVoids_conf_free (struct buildObservedVoids_info *args_info);
|
|||
* @return 0 if everything went fine, NON 0 if an error took place
|
||||
* @deprecated use buildObservedVoids_conf_config_file() instead
|
||||
*/
|
||||
int buildObservedVoids_conf_configfile (char * const filename,
|
||||
int buildObservedVoids_conf_configfile (const char *filename,
|
||||
struct buildObservedVoids_info *args_info,
|
||||
int override, int initialize, int check_required);
|
||||
|
||||
|
@ -217,7 +231,7 @@ int buildObservedVoids_conf_configfile (char * const filename,
|
|||
* @param params additional parameters for the parser
|
||||
* @return 0 if everything went fine, NON 0 if an error took place
|
||||
*/
|
||||
int buildObservedVoids_conf_config_file (char * const filename,
|
||||
int buildObservedVoids_conf_config_file (const char *filename,
|
||||
struct buildObservedVoids_info *args_info,
|
||||
struct buildObservedVoids_conf_params *params);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue