initial upload

This commit is contained in:
2025-12-17 10:53:43 +08:00
commit f3f1778f77
308 changed files with 129940 additions and 0 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,145 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# read src_rec file and check its arrival time and distance from src to rec\n",
"import numpy as np\n",
"\n",
"# read file\n",
"fpath = \"./src_rec_test_out.dat\"\n",
"\n",
"with open(fpath, \"r\") as f:\n",
" lines = f.readlines()\n",
"\n",
" # list to store src lon lat\n",
" src_pos = []\n",
" # list to store rec lon lat\n",
" rec_pos_tmp=[]\n",
" rec_pos = []\n",
"\n",
" for line in lines:\n",
" # src line if there are 13 elements\n",
" if len(line.split()) == 13:\n",
" # store source lon lat dep\n",
" stlon = float(line.split()[8])\n",
" stlat = float(line.split()[7])\n",
" src_pos.append([stlon, stlat])\n",
"\n",
" nrec = float(line.split()[11])\n",
" # rec line if there are 9 elements\n",
" elif len(line.split()) == 9:\n",
" # store receiver lon lat dep\n",
" rclon = float(line.split()[4])\n",
" rclat = float(line.split()[3])\n",
" rctime= float(line.split()[8])\n",
" # calc epicentral distance from src\n",
" dist = np.sqrt((stlon-rclon)**2 + (stlat-rclat)**2)\n",
" rec_pos_tmp.append([rclon, rclat, rctime, dist])\n",
"\n",
" nrec-=1\n",
" else:\n",
" raise ValueError(\"src_rec_test_out.dat file is not correct\")\n",
"\n",
" if nrec==0:\n",
" rec_pos.append(rec_pos_tmp)\n",
" # remove all rec_pos_tmp\n",
" rec_pos_tmp = []\n",
"\n",
"\n",
"\n",
"src_pos = np.array(src_pos)\n",
"rec_pos = np.array(rec_pos)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# plot rec_pos for each src_pos with color by 3rd element\n",
"import matplotlib.pyplot as plt\n",
"\n",
"# selected source\n",
"id_src = 0\n",
"\n",
"fig, axs = plt.subplots(2,1,figsize=(10,10))\n",
"\n",
"# plot arrival time\n",
"# src\n",
"axs[0].scatter(src_pos[id_src,0], src_pos[id_src,1], c='r', marker='o', s=100)\n",
"# rec\n",
"axs[0].scatter(rec_pos[id_src][:,0], rec_pos[id_src][:,1], c=rec_pos[id_src][:,2], s=10, marker='o')\n",
"\n",
"# colorbar\n",
"cbar = plt.colorbar(axs[0].scatter(rec_pos[id_src][:,0], rec_pos[id_src][:,1], c=rec_pos[id_src][:,2], s=10, marker='o'))\n",
"cbar.set_label('arrival time')\n",
"\n",
"# plot epicentral distance\n",
"# src\n",
"axs[1].scatter(src_pos[id_src,0], src_pos[id_src,1], c='r', marker='o', s=100)\n",
"# rec\n",
"\n",
"axs[1].scatter(rec_pos[id_src][:,0], rec_pos[id_src][:,1], c=rec_pos[id_src][:,3], s=10, marker='o')\n",
"\n",
"# colorbar\n",
"cbar = plt.colorbar(axs[1].scatter(rec_pos[id_src][:,0], rec_pos[id_src][:,1], c=rec_pos[id_src][:,3], s=10, marker='o'))\n",
"cbar.set_label('epicentral distance')\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"rec_pos.shape"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"min(rec_pos[id_src][:,2])"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"interpreter": {
"hash": "02f83e1f4cd9619657a6845405e2dd67c4de23753ba48bca5dce2ebf57b3813a"
},
"kernelspec": {
"display_name": "Python 3.9.1 64-bit ('3.9.1')",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.1"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

View File

@@ -0,0 +1,59 @@
iteration 0: 2.68606, 6.23229, 0.226239
iteration 1: 2.66762, 4.63719, 0.214316
iteration 2: 2.73238, 4.08102, 0.213379
iteration 3: 2.77977, 4.02757, 0.215531
iteration 4: 2.75503, 3.96133, 0.213489
iteration 5: 2.70629, 3.89322, 0.215038
iteration 6: 2.64874, 3.82701, 0.228276
iteration 7: 2.58487, 3.76405, 0.212526
iteration 8: 2.5151, 3.70497, 0.210962
iteration 9: 2.43957, 3.65005, 0.212779
iteration 10: 2.35845, 3.59922, 0.215859
iteration 11: 2.27194, 3.55211, 0.218057
iteration 12: 2.18033, 3.50805, 0.223463
iteration 13: 2.08403, 3.46617, 0.218698
iteration 14: 1.98362, 3.42552, 0.215489
iteration 15: 1.87984, 3.38526, 0.21415
iteration 16: 1.77353, 3.34488, 0.211472
iteration 17: 1.66557, 3.30434, 0.214
iteration 18: 1.55685, 3.26406, 0.221782
iteration 19: 1.44815, 3.22471, 0.21206
iteration 20: 1.34022, 3.18704, 0.216203
iteration 21: 1.23371, 3.15168, 0.212569
iteration 22: 1.12917, 3.11898, 0.213464
iteration 23: 1.02721, 3.08897, 0.213914
iteration 24: 0.928483, 3.06131, 0.214082
iteration 25: 0.833576, 3.03521, 0.214501
iteration 26: 0.742987, 3.00939, 0.213422
iteration 27: 0.657363, 2.98204, 0.221331
iteration 28: 0.577238, 2.95076, 0.215693
iteration 29: 0.502953, 2.9126, 0.223062
iteration 30: 0.434765, 2.86425, 0.217287
iteration 31: 0.372809, 2.811, 0.22508
iteration 32: 0.317086, 2.74301, 0.213147
iteration 33: 0.267455, 2.65645, 0.213563
iteration 34: 0.223675, 2.55053, 0.214785
iteration 35: 0.185412, 2.42585, 0.214462
iteration 36: 0.152346, 2.28442, 0.213213
iteration 37: 0.124075, 2.12939, 0.215673
iteration 38: 0.100158, 1.96561, 0.214523
iteration 39: 0.080066, 1.76634, 0.213322
iteration 40: 0.0633697, 1.58065, 0.248635
iteration 41: 0.0496571, 1.41768, 0.227537
iteration 42: 0.0385206, 1.26136, 0.214846
iteration 43: 0.0295813, 1.06553, 0.212869
iteration 44: 0.0224539, 0.922364, 0.215505
iteration 45: 0.0168533, 0.801121, 0.215831
iteration 46: 0.012518, 0.676654, 0.222596
iteration 47: 0.00919207, 0.572065, 0.212897
iteration 48: 0.00666999, 0.473973, 0.215161
iteration 49: 0.00478044, 0.388867, 0.214475
iteration 50: 0.00338263, 0.313598, 0.212979
iteration 51: 0.00236278, 0.246673, 0.213896
iteration 52: 0.00162948, 0.185409, 0.216258
iteration 53: 0.00111072, 0.122625, 0.220116
iteration 54: 0.000747838, 0.0897312, 0.214795
iteration 55: 0.000496874, 0.0652654, 0.214746
iteration 56: 0.000325716, 0.0467522, 0.214539
iteration 57: 0.000210643, 0.0329173, 0.222138
iteration 58: 0.000134388, 0.0227652, 0.216016

View File

@@ -0,0 +1,100 @@
iteration 0: 2.43339, 3.96179, 0.159862
iteration 1: 2.44192, 3.78108, 0.154897
iteration 2: 2.5263, 3.76444, 0.154628
iteration 3: 2.63063, 3.75984, 0.155039
iteration 4: 2.67147, 3.74936, 0.154697
iteration 5: 2.69534, 3.72929, 0.15431
iteration 6: 2.71752, 3.70022, 0.153941
iteration 7: 2.73461, 3.70193, 0.153911
iteration 8: 2.739, 3.95594, 0.152974
iteration 9: 2.72188, 4.19984, 0.153161
iteration 10: 2.67363, 4.43216, 0.153304
iteration 11: 2.5887, 4.64604, 0.153101
iteration 12: 2.46947, 4.72927, 0.152961
iteration 13: 2.32484, 4.78864, 0.153142
iteration 14: 2.16648, 4.85847, 0.152842
iteration 15: 2.00464, 4.78123, 0.152974
iteration 16: 1.84584, 4.55547, 0.153136
iteration 17: 1.69311, 4.41426, 0.153256
iteration 18: 1.54733, 4.18296, 0.152845
iteration 19: 1.40845, 4.0995, 0.153227
iteration 20: 1.27643, 4.03077, 0.152958
iteration 21: 1.15168, 3.96649, 0.152978
iteration 22: 1.03503, 3.90766, 0.153147
iteration 23: 0.927456, 3.87121, 0.153028
iteration 24: 0.829742, 3.77373, 0.15331
iteration 25: 0.742219, 3.6127, 0.153352
iteration 26: 0.664713, 3.40771, 0.153238
iteration 27: 0.596583, 3.17937, 0.152994
iteration 28: 0.536932, 2.9447, 0.153596
iteration 29: 0.484754, 2.71571, 0.153629
iteration 30: 0.439041, 2.49966, 0.15342
iteration 31: 0.398856, 2.30025, 0.153487
iteration 32: 0.363395, 2.11871, 0.153484
iteration 33: 0.331981, 1.95478, 0.153198
iteration 34: 0.304034, 1.80739, 0.152914
iteration 35: 0.27906, 1.67506, 0.153539
iteration 36: 0.256656, 1.55623, 0.152955
iteration 37: 0.236486, 1.44935, 0.153024
iteration 38: 0.218247, 1.35301, 0.153084
iteration 39: 0.201717, 1.26594, 0.15378
iteration 40: 0.186682, 1.187, 0.154371
iteration 41: 0.172982, 1.11523, 0.15392
iteration 42: 0.16048, 1.04978, 0.153982
iteration 43: 0.14905, 0.989915, 0.153204
iteration 44: 0.138585, 0.924638, 0.153238
iteration 45: 0.128997, 0.856952, 0.153877
iteration 46: 0.120206, 0.810159, 0.152934
iteration 47: 0.112133, 0.767564, 0.152937
iteration 48: 0.104707, 0.728427, 0.153035
iteration 49: 0.097869, 0.692264, 0.15315
iteration 50: 0.0915679, 0.658715, 0.152971
iteration 51: 0.0857542, 0.6275, 0.153151
iteration 52: 0.0803839, 0.598383, 0.153117
iteration 53: 0.075418, 0.571163, 0.153092
iteration 54: 0.0708228, 0.545663, 0.153108
iteration 55: 0.0665671, 0.521722, 0.152929
iteration 56: 0.0626222, 0.499192, 0.153113
iteration 57: 0.0589632, 0.477937, 0.15294
iteration 58: 0.0555681, 0.457812, 0.15317
iteration 59: 0.0524166, 0.440694, 0.153242
iteration 60: 0.0494894, 0.420541, 0.153075
iteration 61: 0.046768, 0.400276, 0.152928
iteration 62: 0.0442361, 0.383639, 0.153059
iteration 63: 0.0418792, 0.368117, 0.153116
iteration 64: 0.0396837, 0.353607, 0.153163
iteration 65: 0.0376369, 0.339252, 0.152713
iteration 66: 0.0357276, 0.324887, 0.152917
iteration 67: 0.0339456, 0.312162, 0.153061
iteration 68: 0.0322809, 0.300005, 0.153249
iteration 69: 0.0307245, 0.288393, 0.153127
iteration 70: 0.0292682, 0.277323, 0.153116
iteration 71: 0.0279043, 0.266659, 0.153007
iteration 72: 0.026626, 0.256528, 0.152774
iteration 73: 0.0254269, 0.246895, 0.152918
iteration 74: 0.0243012, 0.237501, 0.153007
iteration 75: 0.0232433, 0.228719, 0.153019
iteration 76: 0.0222484, 0.219205, 0.152934
iteration 77: 0.0213118, 0.203637, 0.153179
iteration 78: 0.0204296, 0.195446, 0.152973
iteration 79: 0.0195979, 0.187844, 0.152942
iteration 80: 0.0188131, 0.180718, 0.152817
iteration 81: 0.0180721, 0.174, 0.15292
iteration 82: 0.0173716, 0.167641, 0.152875
iteration 83: 0.0167088, 0.161606, 0.153251
iteration 84: 0.016081, 0.155857, 0.152889
iteration 85: 0.0154857, 0.150374, 0.153223
iteration 86: 0.0149207, 0.145136, 0.153109
iteration 87: 0.014384, 0.140125, 0.153087
iteration 88: 0.0138737, 0.135328, 0.152957
iteration 89: 0.0133879, 0.130732, 0.152905
iteration 90: 0.0129251, 0.126323, 0.153395
iteration 91: 0.0124838, 0.122094, 0.153812
iteration 92: 0.0120626, 0.118033, 0.153761
iteration 93: 0.0116603, 0.114132, 0.153533
iteration 94: 0.0112756, 0.110382, 0.153376
iteration 95: 0.0109075, 0.106777, 0.153344
iteration 96: 0.010555, 0.103309, 0.153178
iteration 97: 0.0102171, 0.0999714, 0.153041
iteration 98: 0.00989304, 0.0967585, 0.153617
iteration 99: 0.00958196, 0.0936645, 0.153021

View File

@@ -0,0 +1,478 @@
==24162== Memcheck, a memory error detector
==24162== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==24162== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==24162== Command: ../../build/TOMOATT -i input_params_100-100-100_1-1-1-1_gpu.yml
==24162== Parent PID: 24158
==24162==
==24162== Warning: noted but unhandled ioctl 0x30000001 with no size/direction hints.
==24162== This could cause spurious value errors to appear.
==24162== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==24162== Warning: noted but unhandled ioctl 0x27 with no size/direction hints.
==24162== This could cause spurious value errors to appear.
==24162== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==24162== Warning: noted but unhandled ioctl 0x25 with no size/direction hints.
==24162== This could cause spurious value errors to appear.
==24162== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==24162== Warning: noted but unhandled ioctl 0x37 with no size/direction hints.
==24162== This could cause spurious value errors to appear.
==24162== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==24162== Warning: noted but unhandled ioctl 0x17 with no size/direction hints.
==24162== This could cause spurious value errors to appear.
==24162== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==24162== Warning: set address range perms: large range [0x200000000, 0x300200000) (noaccess)
==24162== Warning: set address range perms: large range [0x8fa5000, 0x28fa4000) (noaccess)
==24162== Warning: noted but unhandled ioctl 0x19 with no size/direction hints.
==24162== This could cause spurious value errors to appear.
==24162== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==24162== Warning: set address range perms: large range [0x10006000000, 0x10106000000) (noaccess)
==24162== Warning: noted but unhandled ioctl 0x49 with no size/direction hints.
==24162== This could cause spurious value errors to appear.
==24162== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==24162== Warning: noted but unhandled ioctl 0x21 with no size/direction hints.
==24162== This could cause spurious value errors to appear.
==24162== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==24162== Warning: noted but unhandled ioctl 0x1b with no size/direction hints.
==24162== This could cause spurious value errors to appear.
==24162== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==24162== Warning: noted but unhandled ioctl 0x44 with no size/direction hints.
==24162== This could cause spurious value errors to appear.
==24162== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==24162== Warning: set address range perms: large range [0x10006000000, 0x10106000000) (noaccess)
==24162==
==24162== HEAP SUMMARY:
==24162== in use at exit: 1,079,727 bytes in 174 blocks
==24162== total heap usage: 108,062 allocs, 107,888 frees, 2,182,558,459 bytes allocated
==24162==
==24162== 1 bytes in 1 blocks are definitely lost in loss record 1 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x53C960E: strdup (strdup.c:42)
==24162== by 0x75E2534: ???
==24162== by 0x75DB373: ???
==24162== by 0x568F61F: mca_base_framework_components_register (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x568F9B5: mca_base_framework_register (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x568FA13: mca_base_framework_open (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x503CBD3: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 5 bytes in 1 blocks are definitely lost in loss record 4 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x53C960E: strdup (strdup.c:42)
==24162== by 0x5690090: opal_argv_append_nosize (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x56901B8: opal_argv_append (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x5690351: opal_argv_split_inter (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x75F3FA7: ???
==24162== by 0x75F5B26: ???
==24162== by 0x56A76B1: mca_btl_base_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x75C91B7: ???
==24162== by 0x4FED533: mca_bml_base_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CBB3: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162==
==24162== 8 bytes in 1 blocks are definitely lost in loss record 8 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x56A9469: dlopen_open (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x75A955F: ???
==24162== by 0x75D434D: ???
==24162== by 0x56A76B1: mca_btl_base_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x75C91B7: ???
==24162== by 0x4FED533: mca_bml_base_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CBB3: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 8 bytes in 1 blocks are definitely lost in loss record 9 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x56A9469: dlopen_open (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x75A955F: ???
==24162== by 0x75F5834: ???
==24162== by 0x56A76B1: mca_btl_base_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x75C91B7: ???
==24162== by 0x4FED533: mca_bml_base_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CBB3: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 13 bytes in 1 blocks are definitely lost in loss record 10 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x53C960E: strdup (strdup.c:42)
==24162== by 0x75A95EC: ???
==24162== by 0x75D434D: ???
==24162== by 0x56A76B1: mca_btl_base_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x75C91B7: ???
==24162== by 0x4FED533: mca_bml_base_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CBB3: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 13 bytes in 1 blocks are definitely lost in loss record 11 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x53C960E: strdup (strdup.c:42)
==24162== by 0x75A95EC: ???
==24162== by 0x75F5834: ???
==24162== by 0x56A76B1: mca_btl_base_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x75C91B7: ???
==24162== by 0x4FED533: mca_bml_base_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CBB3: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 72 bytes in 1 blocks are possibly lost in loss record 59 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x79BE805: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7893A0A: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC07B9: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2C8370: cudaGetDeviceCount (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x1FE548: initialize_cuda() (cuda_initialize.cuh:39)
==24162==
==24162== 72 bytes in 1 blocks are possibly lost in loss record 60 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x7890E34: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7892B41: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78932B9: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC12D7: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2C8370: cudaGetDeviceCount (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162==
==24162== 79 (64 direct, 15 indirect) bytes in 1 blocks are definitely lost in loss record 61 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x75C117A: ???
==24162== by 0x568544E: mca_base_framework_components_open (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x56F3E45: mca_mpool_base_open (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x568FA88: mca_base_framework_open (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libopen-pal.so.40.30.2)
==24162== by 0x503CB74: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 152 bytes in 1 blocks are possibly lost in loss record 93 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x794043C: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC044A: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2C8370: cudaGetDeviceCount (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x1FE548: initialize_cuda() (cuda_initialize.cuh:39)
==24162== by 0x1FECA9: main (main.cpp:42)
==24162==
==24162== 152 bytes in 1 blocks are possibly lost in loss record 94 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x794043C: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC0479: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2C8370: cudaGetDeviceCount (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x1FE548: initialize_cuda() (cuda_initialize.cuh:39)
==24162== by 0x1FECA9: main (main.cpp:42)
==24162==
==24162== 152 bytes in 1 blocks are possibly lost in loss record 95 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x794043C: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7A12519: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7A1264D: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7A00E5B: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC0827: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162==
==24162== 152 bytes in 1 blocks are possibly lost in loss record 96 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x794043C: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7A12519: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7A1264D: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7A00E81: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC0827: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162==
==24162== 152 bytes in 1 blocks are possibly lost in loss record 97 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x794043C: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC0C01: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2C8370: cudaGetDeviceCount (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x1FE548: initialize_cuda() (cuda_initialize.cuh:39)
==24162== by 0x1FECA9: main (main.cpp:42)
==24162==
==24162== 152 bytes in 1 blocks are possibly lost in loss record 98 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x794043C: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7893021: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78932D4: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC12D7: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2C8370: cudaGetDeviceCount (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162==
==24162== 152 bytes in 1 blocks are possibly lost in loss record 99 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x794043C: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC0CB2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2C8370: cudaGetDeviceCount (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x1FE548: initialize_cuda() (cuda_initialize.cuh:39)
==24162== by 0x1FECA9: main (main.cpp:42)
==24162==
==24162== 152 bytes in 1 blocks are possibly lost in loss record 100 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x794043C: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC0D4C: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2C8370: cudaGetDeviceCount (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x1FE548: initialize_cuda() (cuda_initialize.cuh:39)
==24162== by 0x1FECA9: main (main.cpp:42)
==24162==
==24162== 152 bytes in 1 blocks are possibly lost in loss record 101 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x794043C: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x799F135: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC0DC7: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2C8370: cudaGetDeviceCount (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x1FE548: initialize_cuda() (cuda_initialize.cuh:39)
==24162==
==24162== 152 bytes in 1 blocks are possibly lost in loss record 102 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x794043C: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x799F155: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC0DC7: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2C8370: cudaGetDeviceCount (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x1FE548: initialize_cuda() (cuda_initialize.cuh:39)
==24162==
==24162== 152 bytes in 1 blocks are possibly lost in loss record 103 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x794043C: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x799F175: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC0DC7: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2C8370: cudaGetDeviceCount (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x1FE548: initialize_cuda() (cuda_initialize.cuh:39)
==24162==
==24162== 320 bytes in 1 blocks are possibly lost in loss record 114 of 151
==24162== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x40147D9: calloc (rtld-malloc.h:44)
==24162== by 0x40147D9: allocate_dtv (dl-tls.c:375)
==24162== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634)
==24162== by 0x53B6834: allocate_stack (allocatestack.c:430)
==24162== by 0x53B6834: pthread_create@@GLIBC_2.34 (pthread_create.c:647)
==24162== by 0x789EC26: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x794C75E: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x7AC1A49: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x78AAAA2: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.65.01)
==24162== by 0x2A8482: __cudart516 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x2A8547: __cudart1336 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x53BAF67: __pthread_once_slow (pthread_once.c:116)
==24162== by 0x2F6AE8: __cudart1612 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162== by 0x29F0E6: __cudart514 (in /home/masarunagaso/workspace/TomoATT/build/TOMOATT)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 122 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x502A9B6: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9EAB3: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 123 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x756D41B: ???
==24162== by 0x502ACAE: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9EAB3: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 124 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x502A9B6: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9EB7A: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 125 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x756D41B: ???
==24162== by 0x502ACAE: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9EB7A: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 126 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x502A9B6: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9EC26: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 127 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x756D41B: ???
==24162== by 0x502ACAE: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9EC26: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 128 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x502A9B6: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9ECD4: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 129 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x756D41B: ???
==24162== by 0x502ACAE: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9ECD4: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 130 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x502A9B6: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9EE36: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 131 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x756D41B: ???
==24162== by 0x502ACAE: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9EE36: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 132 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x502A9B6: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9EF96: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 133 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x756D41B: ???
==24162== by 0x502ACAE: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9EF96: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 134 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x502A9B6: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9F0F4: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== 688 bytes in 1 blocks are definitely lost in loss record 135 of 151
==24162== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24162== by 0x756D41B: ???
==24162== by 0x502ACAE: ompi_op_base_op_select (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4F9F0F4: ompi_op_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x503CB0D: ompi_mpi_init (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x4FD0878: PMPI_Init_thread (in /home/masarunagaso/workspace/TomoATT/external_libs/local_mpi_hdf5/lib/libmpi.so.40.30.3)
==24162== by 0x20EE52: initialize_mpi() (mpi_funcs.h:68)
==24162== by 0x1FEC1D: main (main.cpp:28)
==24162==
==24162== LEAK SUMMARY:
==24162== definitely lost: 9,744 bytes in 21 blocks
==24162== indirectly lost: 15 bytes in 1 blocks
==24162== possibly lost: 2,136 bytes in 14 blocks
==24162== still reachable: 1,067,832 bytes in 138 blocks
==24162== suppressed: 0 bytes in 0 blocks
==24162== Reachable blocks (those to which a pointer was found) are not shown.
==24162== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==24162==
==24162== For lists of detected and suppressed errors, rerun with: -s
==24162== ERROR SUMMARY: 35 errors from 35 contexts (suppressed: 0 from 0)

View File

@@ -0,0 +1,298 @@
# %% [markdown]
# # notebook for create init and true test model
# %%
import numpy as np
import math
if __name__ == "__main__":
# get arguments
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--n_rtp", type=int, nargs=3, default=[55,55,55])
# n_sweep
parser.add_argument("--n_sweep", type=int, default=1)
# ndiv_rtp
parser.add_argument("--ndiv_rtp", type=int, nargs=3, default=[1,1,1])
# use_gpu
parser.add_argument("--use_gpu", type=int, default=0)
n_rtp = parser.parse_args().n_rtp
n_sweep = parser.parse_args().n_sweep
ndiv_rtp = parser.parse_args().ndiv_rtp
use_gpu = parser.parse_args().use_gpu
#
# create model file if not exists
#
# filename
str_nrtp = str(n_rtp[0])+"-"+str(n_rtp[1])+"-"+str(n_rtp[2])
fname_init = 'test_model_init_{}.h5'.format(str_nrtp)
fname_true = 'test_model_true_{}.h5'.format(str_nrtp)
# grid params
R_earth = 6371.0 #6378.1370
rr1=6070
rr2=6400
tt1=(30.0-1.5)/180*math.pi
tt2=(50.0+1.5)/180*math.pi
pp1=(15.0-1.5)/180*math.pi
pp2=(40.0+1.5)/180*math.pi
import os
if not os.path.exists(fname_true):
#n_rtp = [55,55,55]
dr = (rr2-rr1)/(n_rtp[0]-1)
dt = (tt2-tt1)/(n_rtp[1]-1)
dp = (pp2-pp1)/(n_rtp[2]-1)
rr = np.array([rr1 + x*dr for x in range(n_rtp[0])])
tt = np.array([tt1 + x*dt for x in range(n_rtp[1])])
pp = np.array([pp1 + x*dp for x in range(n_rtp[2])])
# initial model
gamma = 0.0
#s0 = 1.0/6.0
slow_p=0.04
ani_p=0.03
eta_init = np.zeros(n_rtp)
xi_init = np.zeros(n_rtp)
zeta_init = np.zeros(n_rtp)
fun_init = np.zeros(n_rtp)
vel_init = np.zeros(n_rtp)
# true model
eta_true = np.zeros(n_rtp)
xi_true = np.zeros(n_rtp)
zeta_true = np.zeros(n_rtp)
fun_true = np.zeros(n_rtp)
vel_true = np.zeros(n_rtp)
c=0
for ir in range(n_rtp[2]):
for it in range(n_rtp[1]):
for ip in range(n_rtp[0]):
#eta_init[ir,it,ip] = 0.0
#xi_init[ir,it,ip] = 0.0
zeta_init[ir,it,ip] = gamma*math.sqrt(eta_init[ir,it,ip]**2 + xi_init[ir,it,ip]**2)
if (rr[ir]>6351):
fun_init[ir,it,ip] = 1.0/(5.8+(6371-rr[ir])/20.0*0.7)
elif (rr[ir]>6336):
fun_init[ir,it,ip] = 1.0/(6.5+(6351-rr[ir])/15.0*0.6)
elif (rr[ir]>5961):
fun_init[ir,it,ip] = 1.0/(8.0+(6336-rr[ir])/375.0*1)
else:
fun_init[ir,it,ip] = 1.0/9.0
vel_init[ir,it,ip] = 1.0/fun_init[ir,it,ip]
# true model
if (tt[it] >= 30.0/180.0*math.pi and tt[it] <= 50.0/180.0*math.pi \
and pp[ip] >= 15.0/180.0*math.pi and pp[ip] <= 40.0/180.0*math.pi \
and rr[ir] >= 6211.0 and rr[ir] <= 6371.0):
c+=1
sigma = math.sin(4.0*math.pi*(tt[it]-30.0/180.0*math.pi)/(20.0/180.0*math.pi)) \
*math.sin(4.0*math.pi*(pp[ip]-15.0/180.0*math.pi)/(25.0/180.0*math.pi)) \
*math.sin(2.0*math.pi*(rr[ir]-6211.0)/160.0)
else:
sigma = 0.0
if sigma < 0:
psi = 60.0/180.0*math.pi
elif sigma > 0:
psi = 150.0/180.0*math.pi
else:
psi = 0.0
eta_true[ir,it,ip] = ani_p*abs(sigma)*math.sin(2.0*psi)
xi_true[ir,it,ip] = ani_p*abs(sigma)*math.cos(2.0*psi)
zeta_true[ir,it,ip] = gamma*math.sqrt(eta_true[ir,it,ip]**2 + xi_true[ir,it,ip]**2)
fun_true[ir,it,ip] = fun_init[ir,it,ip]/(1.0+sigma*slow_p)
vel_true[ir,it,ip] = 1.0/fun_true[ir,it,ip]
r_earth = R_earth #6378.1370
print("depminmax {} {}".format(r_earth-rr1,r_earth-rr2))
print(c)
# %%
# write out
import h5py
# n_rtp to storing
fout_init = h5py.File(fname_init, 'w')
fout_true = h5py.File(fname_true, 'w')
# write out the arrays eta_init, xi_init, zeta_init, fun_init, a_init, b_init, c_init, f_init
fout_init.create_dataset('eta', data=eta_init)
fout_init.create_dataset('xi', data=xi_init)
fout_init.create_dataset('zeta',data=zeta_init)
fout_init.create_dataset('vel', data=vel_init)
# writeout the arrays eta_true, xi_true, zeta_true, fun_true, a_true, b_true, c_true, f_true
fout_true.create_dataset('eta', data=eta_true)
fout_true.create_dataset('xi', data=xi_true)
fout_true.create_dataset('zeta',data=zeta_true)
fout_true.create_dataset('vel', data=vel_true)
fout_init.close()
fout_true.close()
#
# create src rec file
# %% [markdown]
# # prepare src station file
#
# ```
# 26 1992 1 1 2 43 56.900 1.8000 98.9000 137.00 2.80 8 305644 <- src  : id_src year month day hour min sec lat lon dep_km mag num_recs id_event
# 26 1 PCBI 1.8900 98.9253 1000.0000 P 10.40 18.000 <- arrival : id_src id_rec name_rec lat lon elevation_m phase epicentral_distance_km arrival_time_sec
# 26 2 MRPI 1.6125 99.3172 1100.0000 P 50.84 19.400
# 26 3 HUTI 2.3153 98.9711 1600.0000 P 57.84 19.200
#
# ```
# %%
#import random
#random.seed(123456789)
# dummys
year_dummy = 1998
month_dummy = 1
day_dummy = 1
hour_dummy = 0
minute_dummy = 0
second_dummy = 0
mag_dummy = 3.0
id_dummy = 1000
st_name_dummy = 'AAAA'
phase_dummy = 'P'
arriv_t_dummy = 0.0
tt1deg = tt1 * 180.0/math.pi
tt2deg = tt2 * 180.0/math.pi
pp1deg = pp1 * 180.0/math.pi
pp2deg = pp2 * 180.0/math.pi
n_src = 1
n_rec = [1 for x in range(n_src)]
lines = []
pos_src=[]
pos_rec=[]
dep_srcs=[12.902894]
lon_srcs=[16.794572]
lat_srcs=[37.503373]
elev_recs = [0.0]
lon_recs = [29.812050]
lat_recs = [36.472809]
# create dummy src
for i_src in range(n_src):
# define one point in the domain (rr1 bottom, rr2 top)
dep = dep_srcs[i_src]
lon = lon_srcs[i_src]
lat = lat_srcs[i_src]
src = [i_src, year_dummy, month_dummy, day_dummy, hour_dummy, minute_dummy, second_dummy, lat, lon, dep, mag_dummy, n_rec[i_src], id_dummy]
lines.append(src)
pos_src.append([lon,lat,dep])
# create dummy station
for i_rec in range(n_rec[i_src]):
#elev_rec = random.uniform(0.0,-10.0) # elevation in m
#lon_rec = random.uniform(pp1deg,pp2deg)
#lat_rec = random.uniform(tt1deg,tt2deg)
rec = [i_src, i_rec, st_name_dummy+"_"+str(i_rec), lat_recs[i_rec], lon_recs[i_rec], elev_recs[i_rec], phase_dummy, arriv_t_dummy]
lines.append(rec)
pos_rec.append([lon_recs[i_rec],lat_recs[i_rec],elev_recs[i_rec]])
# write out ev_arrivals file
fname = 'src_rec_test.dat'
with open(fname, 'w') as f:
for line in lines:
for elem in line:
f.write('{} '.format(elem))
f.write('\n')
# %%
# draw src and rec positions
#import matplotlib.pyplot as plt
#
#for i_src in range(n_src):
# plt.scatter(pos_src[i_src][1],pos_src[i_src][0],c='r',marker='o')
#
## %%
## plot receivers
#for i_rec in range(n_rec[0]):
# plt.scatter(pos_rec[i_rec][1],pos_rec[i_rec][0],c='b',marker='o')
str_input_file = """version : 2
domain :
#min_max_dep : [-21.863,308.8137] # depth in km
min_max_dep : [-29.0, 301.0] # depth in km with R = 6371.0
min_max_lat : [28.5,51.5] # latitude in degree
min_max_lon : [13.5,41.5] # longitude in degree
n_rtp : [{},{},{}] # number of nodes
source :
#src_dep_lat_lon : [5.0,40.0,24.0] # source depth in km, latitude, longitude in degree
#src_dep_lat_lon : [5750.6370,46.0,36.0] # source depth in km, latitude, longitude in degree
src_rec_file : 'src_rec_test.dat' # source receiver file (if found, src_dep_lat_lon is ignored)
swap_src_rec : 1 # swap source and receiver
model :
init_model_type : '' # 'fd' (input file) or '1d_ak135'
init_model_path : './test_model_true_{}-{}-{}.h5' # path to initial model file (ignored if init_model_type is '1d_*')
inversion :
run_mode : 0 # 0 for forward simulation only, 1 for inversion
n_inversion_grid : 1
parallel :
n_sims : 1 # number of simultaneous run
ndiv_rtp : [{},{},{}] # number of subdomains
nproc_sub : {} # number of subprocess used for each subdomain
use_gpu : {}
calculation :
convergence_tolerance : 1e-4
max_iterations : 200
stencil_order : 3 # 1 or 3
sweep_type : 1 # 0: legacy, 1: cuthill-mckee with shm parallelization
output_setting :
is_output_source_field : 0 # output the calculated field of all sources 1 for yes; 0 for no; default: 1
is_verbose_output : 0 # output internal parameters, if no, only model parameters are out. 1 for yes; 0 for no; default: 0
is_output_model_dat : 0 # output model_parameters_inv_0000.dat or not. 1 for yes; 0 for no; default: 1
""".format(n_rtp[0],n_rtp[1],n_rtp[2],n_rtp[0],n_rtp[1],n_rtp[2], ndiv_rtp[0],ndiv_rtp[1],ndiv_rtp[2], n_sweep, use_gpu)
str_nsweep_ndiv_rtp = str(n_sweep) + '-' + str(ndiv_rtp[0]) + '-' + str(ndiv_rtp[1]) + '-' + str(ndiv_rtp[2])
# write out
with open('input_params_{}_{}.yml'.format(str_nrtp, str_nsweep_ndiv_rtp), 'w') as f:
f.write(str_input_file)

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,139 @@
from paraview.simple import *
if __name__ == '__main__':
# get args
args = sys.argv
if len(args) != 3:
print("Usage: pvpython draw_slice.py <data_file> <dataset_name>")
sys.exit(1)
# get data
fpath = args[1]
name_dset = args[2]
#fpath = "OUTPUT_FILES/out_data_sim_0.xmf"
#name_dset = 'fun_inv_0000'
# create a new 'XDMF Reader'
out_data_sim_0xmf = XDMFReader(registrationName=fpath.split('/')[-1], FileNames=[fpath])
# Limit the data array to be read
# Properties modified on out_data_sim_0xmf
out_data_sim_0xmf.PointArrayStatus = [name_dset]
# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
## show data in view
#out_data_sim_0xmfDisplay = Show(out_data_sim_0xmf, renderView1, 'UnstructuredGridRepresentation')
## trace defaults for the display properties.
#out_data_sim_0xmfDisplay.Representation = 'Surface'
# reset view to fit data
#renderView1.ResetCamera(False)
# get the material library
materialLibrary1 = GetMaterialLibrary()
# get color transfer function/color map for 'T_res_src_0_inv_0000'
name_dsetLUT = GetColorTransferFunction(name_dset)
# get opacity transfer function/opacity map for 'T_res_src_0_inv_0000'
name_dsetPWF = GetOpacityTransferFunction(name_dset)
# show color bar/color legend
#out_data_sim_0xmfDisplay.SetScalarBarVisibility(renderView1, True)
# update the view to ensure updated data information
#renderView1.Update()
# create a new 'Slice'
slice1 = Slice(registrationName='Slice1', Input=out_data_sim_0xmf)
# Properties modified on slice1.SliceType
slice1.SliceType.Normal = [0.0, 0.0, 1.0]
# show data in view
slice1Display = Show(slice1, renderView1, 'GeometryRepresentation')
# trace defaults for the display properties.
slice1Display.Representation = 'Surface'
# hide data in view
Hide(out_data_sim_0xmf, renderView1)
# show color bar/color legend
slice1Display.SetScalarBarVisibility(renderView1, True)
# trace defaults for the display properties.
slice1Display.Representation = 'Surface'
# rescale color and/or opacity maps used to include current data range
slice1Display.RescaleTransferFunctionToDataRange(True, False)
# show color bar/color legend
slice1Display.SetScalarBarVisibility(renderView1, True)
#
# change the position of color bar
#
# Properties modified on slice1Display.DataAxesGrid
slice1Display.DataAxesGrid.GridAxesVisibility = 1
# get color legend/bar for t_res_src_0_inv_0000LUT in view renderView1
name_dsetLUTColorBar = GetScalarBar(name_dsetLUT, renderView1)
# change scalar bar placement
name_dsetLUTColorBar.Orientation = 'Horizontal'
name_dsetLUTColorBar.WindowLocation = 'Any Location'
name_dsetLUTColorBar.Position = [0.33262344353799916, 0.24363636363636363]
name_dsetLUTColorBar.ScalarBarLength = 0.3299999999999998
# update the view to ensure updated data information
#renderView1.Update()
#
# axis options
#
# toggle 3D widget visibility (only when running from the GUI)
Hide3DWidgets(proxy=slice1.SliceType)
# Properties modified on slice1Display.DataAxesGrid
slice1Display.DataAxesGrid.GridAxesVisibility = 1
#
# window layout and camera settings
#
layout1 = GetLayout()
#--------------------------------
# saving layout sizes for layouts
# layout/tab size in pixels
layout1.SetSize(1280, 980)
#-----------------------------------
# saving camera placements for views
# current camera placement for renderView1
renderView1.CameraPosition = [6086.06543558693, 0.0, 7825.811009542308]
renderView1.CameraFocalPoint = [6086.06543558693, 0.0, -3.410605131648481e-13]
renderView1.CameraViewUp = [1.0, 2.220446049250313e-16, 0.0]
renderView1.CameraParallelScale = 2025.468932642534
# save screenshot
SaveScreenshot('test_screenshot.png', renderView1, ImageResolution=[2560,1280])
Render()
Interact()

View File

@@ -0,0 +1,115 @@
# trace generated using paraview version 5.10.1
#import paraview
#paraview.compatibility.major = 5
#paraview.compatibility.minor = 10
#### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()
# create a new 'XDMF Reader'
out_data_sim_0xmf = XDMFReader(registrationName='out_data_sim_0.xmf', FileNames=['/home/masarunagaso/workspace/TomoATT/test/solver_performance/OUTPUT_FILES/out_data_sim_0.xmf'])
# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
# show data in view
out_data_sim_0xmfDisplay = Show(out_data_sim_0xmf, renderView1, 'UnstructuredGridRepresentation')
# trace defaults for the display properties.
out_data_sim_0xmfDisplay.Representation = 'Surface'
# reset view to fit data
renderView1.ResetCamera(False)
# get the material library
materialLibrary1 = GetMaterialLibrary()
# show color bar/color legend
out_data_sim_0xmfDisplay.SetScalarBarVisibility(renderView1, True)
# update the view to ensure updated data information
renderView1.Update()
# get color transfer function/color map for 'procid'
procidLUT = GetColorTransferFunction('procid')
# get opacity transfer function/opacity map for 'procid'
procidPWF = GetOpacityTransferFunction('procid')
# create a new 'Slice'
slice1 = Slice(registrationName='Slice1', Input=out_data_sim_0xmf)
# show data in view
slice1Display = Show(slice1, renderView1, 'GeometryRepresentation')
# trace defaults for the display properties.
slice1Display.Representation = 'Surface'
# hide data in view
Hide(out_data_sim_0xmf, renderView1)
# show color bar/color legend
slice1Display.SetScalarBarVisibility(renderView1, True)
# update the view to ensure updated data information
renderView1.Update()
# Properties modified on slice1.SliceType
slice1.SliceType.Normal = [0.0, 0.0, 1.0]
# update the view to ensure updated data information
renderView1.Update()
# set scalar coloring
ColorBy(slice1Display, ('POINTS', 'T_res_src_0_inv_0000'))
# Hide the scalar bar for this color map if no visible data is colored by it.
HideScalarBarIfNotNeeded(procidLUT, renderView1)
# rescale color and/or opacity maps used to include current data range
slice1Display.RescaleTransferFunctionToDataRange(True, False)
# show color bar/color legend
slice1Display.SetScalarBarVisibility(renderView1, True)
# get color transfer function/color map for 'T_res_src_0_inv_0000'
t_res_src_0_inv_0000LUT = GetColorTransferFunction('T_res_src_0_inv_0000')
# get opacity transfer function/opacity map for 'T_res_src_0_inv_0000'
t_res_src_0_inv_0000PWF = GetOpacityTransferFunction('T_res_src_0_inv_0000')
# toggle 3D widget visibility (only when running from the GUI)
Hide3DWidgets(proxy=slice1.SliceType)
# Properties modified on slice1Display.DataAxesGrid
slice1Display.DataAxesGrid.GridAxesVisibility = 1
#================================================================
# addendum: following script captures some of the application
# state to faithfully reproduce the visualization during playback
#================================================================
# get layout
layout1 = GetLayout()
#--------------------------------
# saving layout sizes for layouts
# layout/tab size in pixels
layout1.SetSize(2329, 1650)
#-----------------------------------
# saving camera placements for views
# current camera placement for renderView1
renderView1.CameraPosition = [6086.06543558693, 0.0, 7825.811009542308]
renderView1.CameraFocalPoint = [6086.06543558693, 0.0, -3.410605131648481e-13]
renderView1.CameraViewUp = [1.0, 2.220446049250313e-16, 0.0]
renderView1.CameraParallelScale = 2025.468932642534
#--------------------------------------------
# uncomment the following to render all views
# RenderAllViews()
# alternatively, if you want to write images, you can use SaveScreenshot(...).

View File

@@ -0,0 +1,106 @@
# trace generated using paraview version 5.10.1
#import paraview
#paraview.compatibility.major = 5
#paraview.compatibility.minor = 10
#### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()
# create a new 'XDMF Reader'
out_data_sim_0xmf = XDMFReader(registrationName='out_data_sim_0.xmf', FileNames=['/home/masarunagaso/workspace/TomoATT/test/solver_performance/OUTPUT_FILES/out_data_sim_0.xmf'])
# Properties modified on out_data_sim_0xmf
out_data_sim_0xmf.PointArrayStatus = ['T_res_src_0_inv_0000']
# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
# show data in view
out_data_sim_0xmfDisplay = Show(out_data_sim_0xmf, renderView1, 'UnstructuredGridRepresentation')
# trace defaults for the display properties.
out_data_sim_0xmfDisplay.Representation = 'Surface'
# reset view to fit data
renderView1.ResetCamera(False)
# get the material library
materialLibrary1 = GetMaterialLibrary()
# show color bar/color legend
out_data_sim_0xmfDisplay.SetScalarBarVisibility(renderView1, True)
# update the view to ensure updated data information
renderView1.Update()
# get color transfer function/color map for 'T_res_src_0_inv_0000'
t_res_src_0_inv_0000LUT = GetColorTransferFunction('T_res_src_0_inv_0000')
# get opacity transfer function/opacity map for 'T_res_src_0_inv_0000'
t_res_src_0_inv_0000PWF = GetOpacityTransferFunction('T_res_src_0_inv_0000')
# create a new 'Slice'
slice1 = Slice(registrationName='Slice1', Input=out_data_sim_0xmf)
# Properties modified on slice1.SliceType
slice1.SliceType.Normal = [0.0, 0.0, 1.0]
# show data in view
slice1Display = Show(slice1, renderView1, 'GeometryRepresentation')
# trace defaults for the display properties.
slice1Display.Representation = 'Surface'
# hide data in view
Hide(out_data_sim_0xmf, renderView1)
# show color bar/color legend
slice1Display.SetScalarBarVisibility(renderView1, True)
# update the view to ensure updated data information
renderView1.Update()
# toggle 3D widget visibility (only when running from the GUI)
Hide3DWidgets(proxy=slice1.SliceType)
# Properties modified on slice1Display.DataAxesGrid
slice1Display.DataAxesGrid.GridAxesVisibility = 1
# get color legend/bar for t_res_src_0_inv_0000LUT in view renderView1
t_res_src_0_inv_0000LUTColorBar = GetScalarBar(t_res_src_0_inv_0000LUT, renderView1)
# change scalar bar placement
t_res_src_0_inv_0000LUTColorBar.Orientation = 'Horizontal'
t_res_src_0_inv_0000LUTColorBar.WindowLocation = 'Any Location'
t_res_src_0_inv_0000LUTColorBar.Position = [0.33262344353799916, 0.34363636363636363]
t_res_src_0_inv_0000LUTColorBar.ScalarBarLength = 0.3299999999999998
#================================================================
# addendum: following script captures some of the application
# state to faithfully reproduce the visualization during playback
#================================================================
# get layout
layout1 = GetLayout()
#--------------------------------
# saving layout sizes for layouts
# layout/tab size in pixels
layout1.SetSize(2329, 1650)
#-----------------------------------
# saving camera placements for views
# current camera placement for renderView1
renderView1.CameraPosition = [6086.06543558693, 0.0, 7825.811009542308]
renderView1.CameraFocalPoint = [6086.06543558693, 0.0, -3.410605131648481e-13]
renderView1.CameraViewUp = [1.0, 2.220446049250313e-16, 0.0]
renderView1.CameraParallelScale = 2025.468932642534
#--------------------------------------------
# uncomment the following to render all views
# RenderAllViews()
# alternatively, if you want to write images, you can use SaveScreenshot(...).

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB