Skip to content

Commit

Permalink
Started some code for merging bdamage files
Browse files Browse the repository at this point in the history
  • Loading branch information
ANGSD committed Feb 22, 2025
1 parent 7f5e532 commit f085b11
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions merge_bdamage.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include <cstdio>

#include "profile.h"


int main_mergedamage(int argc, char **argv){

for(int i=0;i<argc;i++){
fprintf(stderr,"argc: %d val: %s\n",i,argv[i]);
}

return 0;
}
1 change: 1 addition & 0 deletions merge_bdamage.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
int main_mergedamage(int argc, char **argv);
4 changes: 3 additions & 1 deletion metaDMG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "shared.h" // for parse_names, parse_nodes
#include "types.h" // for int2intvec, int2int
#include "version.h" // for METADAMAGE_VERSION
#include "merge_bdamage.h" //for merging multiple bdmage files

#ifdef __REGRESSION__
#include "regression.h" // for main_regression
Expand Down Expand Up @@ -1402,7 +1403,8 @@ int main(int argc, char **argv) {
main_merge2(argc, argv);
if (!strcmp(argv[0], "lca"))
main_lca(argc, argv);

if (!strcmp(argv[0], "mergedamage"))
main_mergedamage(argc, argv);
free(dingding2);
// fprintf(stderr, "\t[ALL done] cpu-time used = %.2f sec\n", (float)(clock() - t) / CLOCKS_PER_SEC);
// fprintf(stderr, "\t[ALL done] walltime used = %.2f sec\n", (float)(time(NULL) - t2));
Expand Down
Binary file removed misc/a.out
Binary file not shown.

0 comments on commit f085b11

Please sign in to comment.