From 1d4bad5a02f8e94d1cd8770d94048edf2883e6a7 Mon Sep 17 00:00:00 2001 From: lykos98 <francy273998@gmail.com> Date: Thu, 23 Jan 2025 10:30:03 +0100 Subject: [PATCH] added argument parser, updated readme --- README.md | 2 +- src/main/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 31774ab..8766e9f 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The suggestion is to run it with one mpi task per socket. - -t --in-type *(required)* datatype of the input file, allowed choices `f32`, `f64` - -d --in-dims *(required)* number of dimensions of the data file, dadp expects something of the form N x d where N is inferred from the lenght of the data file - -o --out-data *(optional)* output path for the data, the datafile is shuffled between mpi tasks and datapoints are ordered default is `out_data` - - -a --out-assignment *(optional)* output path for the cluster assignment output ranges [0 ... Nc - 1] for core points halo points have indices [-Nc ... -1] conversion of idx for an halo point is `cluster_idx = -halo_idx - 1` + - -a --out-assignment *(optional)* output path for the cluster assignment output ranges [0 ... Nc - 1] for core points halo points have indices [-Nc ... -1] conversion of idx for an halo point is `cluster_idx = -halo_idx - 1`, default is `out_assignment` # TODO diff --git a/src/main/main.c b/src/main/main.c index ac20523..2c09e47 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -59,7 +59,7 @@ const char* help = "Distributed Advanced Density Peak\n"\ " mpi tasks and datapoints are ordered default is `out_data` \n"\ " -a --out-assignment (optional) output path for the cluster assignment output ranges [0 ... Nc - 1]\n"\ " for core points halo points have indices [-Nc ... -1] conversion\n"\ - " of idx for an halo point is cluster_idx = -halo_idx - 1\n"; + " of idx for an halo point is cluster_idx = -halo_idx - 1, default is `out_assignment`\n"; void parse_args(global_context_t* ctx, int argc, char** argv) { -- GitLab