Top | ![]() |
![]() |
![]() |
![]() |
Functions
Types and Values
extern guint | fftw_default_flags |
#define | NCM_CFG_DATA_DIR_ENV |
#define | NCM_ZERO_LIMIT |
#define | NCM_DEFAULT_PRECISION |
#define | NCM_THREAD_POOL_MAX |
#define | mpz_inits |
#define | mpz_clears |
Description
These functions are used to configure the library, including helper functions related to the library configuration.
Functions
ncm_cfg_init ()
void
ncm_cfg_init (void
);
Main library configuration function. Must be called before any other function of NumCosmo.
Initializes internal variables and sets all other library number of threads to one.
See also: ncm_cfg_init_full()
ncm_cfg_init_full_ptr()
.
ncm_cfg_init_full_ptr ()
void ncm_cfg_init_full_ptr (gint *argc
,gchar ***argv
);
Main library configuration function. Must be called before any other function of NumCosmo.
Initializes internal variables and sets all other library number of threads to one.
This function passes the arguments to other libraries, e.g, MPI. If that is not necessary
ncm_cfg_init()
should be used. This version should be used from C applications passing
argc
and argv
pointers from main.
See also: ncm_cfg_init()
ncm_cfg_init_full()
.
ncm_cfg_init_full ()
gchar ** ncm_cfg_init_full (gint argc
,gchar **argv
);
Main library configuration function. Must be called before any other function of NumCosmo.
Initializes internal variables and sets all other library number of threads to one.
This function passes the arguments to other libraries, e.g, MPI. If that is not necessary
ncm_cfg_init()
should be used. This version is compatible with bindings and can be safely
called from other languages.
See also: ncm_cfg_init()
ncm_cfg_init_full_ptr()
.
ncm_cfg_enable_gsl_err_handler ()
void
ncm_cfg_enable_gsl_err_handler (void
);
Enables the GSL error handler.
ncm_cfg_register_obj ()
void
ncm_cfg_register_obj (GType obj
);
Registers the object obj
in the GObject type system.
ncm_cfg_get_fullpath ()
gchar * ncm_cfg_get_fullpath (const gchar *filename
,...
);
Gets the full path of filename
.
ncm_cfg_keyfile_to_arg ()
void ncm_cfg_keyfile_to_arg (GKeyFile *kfile
,const gchar *group_name
,GOptionEntry *entries
,gchar **argv
,gint *argc
);
FIXME
ncm_cfg_entries_to_keyfile ()
void ncm_cfg_entries_to_keyfile (GKeyFile *kfile
,const gchar *group_name
,GOptionEntry *entries
);
FIXME
ncm_cfg_get_enum_by_id_name_nick ()
const GEnumValue * ncm_cfg_get_enum_by_id_name_nick (GType enum_type
,const gchar *id_name_nick
);
FIXME
ncm_cfg_enum_get_value ()
const GEnumValue * ncm_cfg_enum_get_value (GType enum_type
,guint n
);
FIXME
ncm_cfg_set_logfile ()
void
ncm_cfg_set_logfile (gchar *filename
);
Sets all log information to filename
.
ncm_cfg_set_logstream ()
void
ncm_cfg_set_logstream (FILE *stream
);
Sets all log information to stream
.
ncm_cfg_set_log_handler ()
void
ncm_cfg_set_log_handler (NcmCfgLoggerFunc logger
);
Sets all log information to stream
.
ncm_cfg_set_error_log_handler ()
void
ncm_cfg_set_error_log_handler (NcmCfgLoggerFunc logger
);
Sets all log information to stream
.
ncm_cfg_set_openmp_nthreads ()
void
ncm_cfg_set_openmp_nthreads (gint n
);
Sets OpenMP number of threads to n
when available.
ncm_cfg_set_openblas_nthreads ()
void
ncm_cfg_set_openblas_nthreads (gint n
);
Sets OpenBLAS number of threads to n
when available.
ncm_cfg_set_blis_nthreads ()
void
ncm_cfg_set_blis_nthreads (gint n
);
Sets BLIS number of threads to n
when available.
ncm_cfg_set_mkl_nthreads ()
void
ncm_cfg_set_mkl_nthreads (gint n
);
Sets OpenBLAS number of threads to n
when available.
ncm_cfg_logfile_flush ()
void
ncm_cfg_logfile_flush (gboolean on
);
Enables or disables the log file flush.
ncm_string_ww ()
gchar * ncm_string_ww (const gchar *msg
,const gchar *first
,const gchar *rest
,guint ncols
);
Creates a word wrapped string.
ncm_message_ww ()
void ncm_message_ww (const gchar *msg
,const gchar *first
,const gchar *rest
,guint ncols
);
Logs a word wrapped message.
ncm_cfg_get_data_filename ()
gchar * ncm_cfg_get_data_filename (const gchar *filename
,gboolean must_exist
);
Looks for filename
in the data path and returns
the full path if found.
ncm_cfg_array_set_variant ()
void ncm_cfg_array_set_variant (GArray *a
,GVariant *var
);
FIXME
[skip]
ncm_cfg_array_to_variant ()
GVariant * ncm_cfg_array_to_variant (GArray *a
,const GVariantType *etype
);
FIXME
[skip]
ncm_cfg_set_fftw_default_flag ()
void ncm_cfg_set_fftw_default_flag (guint flag
,const gdouble timeout
);
Sets the default FFTW flag (FFTW_ESTIMATE, FFTW_MEASURE, FFTW_PATIENT, FFTW_EXHAUSTIVE)
to be used when building plans. The variable timeout
sets the maximum time spended on
planners.