Skip to content
Permalink
Browse files

correct usage message in dfilemaker

Give the user correct guidance about the relationship between
ntotal and nlevels.

Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
  • Loading branch information
ofaaland authored and adammoody committed Mar 19, 2020
1 parent adfc74c commit 20ff7e4c01cf7e346cd59b001719068014087bfa
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/dfilemaker/dfilemaker.c
@@ -585,7 +585,8 @@ int main(int narg, char** arg)
*----------------------------------------------*/
if (narg < 4) {
if (rank == 0) {
printf("Usage: dfilemaker <nitems> <nlevels> <maxflen> [-i seed]\n");
printf("Usage: dfilemaker <ntotal> <nlevels> <maxflen> [-i seed]\n");
printf(" where ntotal > (levels * (nlevels + 1) /2)\n");
}
MPI_Finalize();
exit(0);
@@ -609,7 +610,7 @@ int main(int narg, char** arg)
nfiles[0] = ntotal / nsum;
if (nfiles[0] < 1) {
if (rank == 0) {
printf("nfiles must be greater than nlevels\n");
printf("ntotal must be greater than (levels * (nlevels + 1) /2)\n");
}
MPI_Finalize();
exit(0);

0 comments on commit 20ff7e4

Please sign in to comment.
You can’t perform that action at this time.