Skip to content

Commit

Permalink
Adding MPICH support.
Browse files Browse the repository at this point in the history
Descreasing allowed m2lnL variance for exploration phase (leading to overflow during matrix inversion for large dimensions).
  • Loading branch information
vitenti committed Feb 16, 2024
1 parent 31a590e commit d4e525f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,16 @@ mpi_fortran_dep = dependency(
required: false,
)

# MPICH is not found by the mpi dependency, so we need to check for it manually
if not mpi_c_dep.found()
mpi_c_dep = dependency('mpich', required: false)
endif

# MPICH is not found by the mpi dependency, so we need to check for it manually
if not mpi_fortran_dep.found()
mpi_fortran_dep = dependency('mpichf90', required: false)
endif

if mpi_c_dep.found()
numcosmo_conf.set('HAVE_MPI', true)
numcosmo_build_cfg.set('have_mpi_support', '#define NUMCOSMO_HAVE_MPI 1')
Expand Down
2 changes: 1 addition & 1 deletion numcosmo/math/ncm_stats_dist.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ _ncm_stats_dist_prepare_interp (NcmStatsDist *sd, NcmVector *m2lnp)
{
NcmStatsDistClass *sd_class = NCM_STATS_DIST_GET_CLASS (sd);
NcmStatsDistEval eval = {sd, self, sd_class, NULL, m2lnp};
const gdouble dbl_limit = 6.0;
const gdouble dbl_limit = 2.0;
guint i;

/*
Expand Down

0 comments on commit d4e525f

Please sign in to comment.