aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-05-15 17:14:41 +0200
committerThomas White <taw@physics.org>2023-07-28 13:22:05 +0200
commit0a9f19f83f8dd408266ead176a96f5b6dfe5a686 (patch)
tree4babcf51a5fbe4ab4745ee4f7d1acbb90e55b8b9 /src
parent47889fc9df2e5ff016369af6dbf55e7472496c08 (diff)
adjust_detector: Load geometry and show hierarchy
Diffstat (limited to 'src')
-rw-r--r--src/adjust_detector.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/adjust_detector.c b/src/adjust_detector.c
index 2e815677..37fa5008 100644
--- a/src/adjust_detector.c
+++ b/src/adjust_detector.c
@@ -89,6 +89,7 @@ static double parse_double(const char *str, char complain)
int main(int argc, char *argv[])
{
int c;
+ DataTemplate *dtempl;
char *in_geom = NULL;
char *out_geom = NULL;
double x_shift = 0.0;
@@ -192,5 +193,10 @@ int main(int argc, char *argv[])
return 1;
}
+ dtempl = data_template_new_from_file(in_geom);
+ if ( dtempl == NULL ) return 1;
+
+ data_template_show_hierarchy(dtempl);
+
return 0;
}