Commit 1d4bad5a authored by lykos98's avatar lykos98
Browse files

added argument parser, updated readme

parent fa28bed2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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

+1 −1
Original line number Diff line number Diff line
@@ -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)
{