Closed jbae11 closed 3 years ago
Could you rerun with ./mcnp2cad --skip-graveyard
I made the appropriate edits and rebuilt mcnp2cad. Now instead I get this error:
Warning: determinant of rotation matrix 1 != +-1
Warning: determinant of rotation matrix 1 != +-1
Done reading input.
World size: 946.296 (trs added 68.58)
Defining geometry...
ERROR: Option not supported for mesh based geometry.
ERROR: Failed to copy volume 2
iGeom error (22): making negative body
* Trouble copying blank.
iGeom error (9): applying translation
* Wrong type of entity specified for move.
ERROR: Option not supported for mesh based geometry.
ERROR: Failed to copy volume 3
Segmentation fault
hmm, could you attach your mcnp input?
I'm terribly sorry but I don't think I can share it.. Is there another way to see what's causing the error? I tried the verbose option but nothing extra showed up
Do you have some mesh-based geometry in the input file?
@gonuke thanks. I got rid of the mesh-based geometry and now I have this:
Warning: determinant of rotation matrix 0.999999 != +-1
Warning: determinant of rotation matrix 0.999999 != +-1
Warning: determinant of rotation matrix 1 != +-1
Warning: determinant of rotation matrix 1 != +-1
Warning: determinant of rotation matrix 1 != +-1
Warning: determinant of rotation matrix 0.999999 != +-1
Warning: determinant of rotation matrix 1 != +-1
Warning: determinant of rotation matrix 1 != +-1
Warning: determinant of rotation matrix 1 != +-1
Done reading input.
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check: __n (which is 3) >= this->size() (which is 3)
Aborted
Could you re-run with the --verbose flag, it may provide additional information
Nothing extra showed up with the verbose flag, nor the debug flag
Hmm very strange, could you edit the verbose flag to be true in the source file and recompile?
From: Jin Whan Bae notifications@github.com Sent: Tuesday, December 1, 2020 7:12:16 PM To: svalinn/mcnp2cad mcnp2cad@noreply.github.com Cc: Davis, Andrew andrew.davis@ukaea.uk; Comment comment@noreply.github.com Subject: Re: [svalinn/mcnp2cad] Segmenetation fault on running conversion (#71)
Nothing extra showed up with the verbose flag, nor the debug flag
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/svalinn/mcnp2cad/issues/71#issuecomment-736759772, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AASTUSQRFXG6SCSJKFWOCSDSSU5ZBANCNFSM4UJDWENQ.
@makeclean thanks, I got the following output (truncated):
TR861: [trans (0, 0, 0)(7.80488:(0, 0, -1))]
Constructing rotation:
[ 0.992905 0.118911 0 ]
[ -0.118911 0.992905 0 ]
[ 0 0 1 ]
det = 1
Warning: determinant of rotation matrix 1 != +-1
r = 0.237822 t = 2.98581 theta = 0.119193
x = 0 y = 0 z = -0.237822
computed rotation: [trans (0, 0, 0)(6.82926:(0, 0, -1))]
TR862: [trans (0, 0, 0)(6.82926:(0, 0, -1))]
Constructing rotation:
[ 0.994786 0.101988 0 ]
[ -0.101988 0.994786 0 ]
[ 0 0 1 ]
det = 1
Warning: determinant of rotation matrix 1 != +-1
r = 0.203976 t = 2.98957 theta = 0.102166
x = 0 y = 0 z = -0.203976
computed rotation: [trans (0, 0, 0)(5.85366:(0, 0, -1))]
TR863: [trans (0, 0, 0)(5.85366:(0, 0, -1))]
Constructing rotation:
[ 0.996378 0.085035 0 ]
[ -0.085035 0.996378 0 ]
[ 0 0 1 ]
det = 1
Warning: determinant of rotation matrix 1 != +-1
r = 0.17007 t = 2.99276 theta = 0.0851378
x = 0 y = 0 z = -0.17007
computed rotation: [trans (0, 0, 0)(4.87804:(0, 0, -1))]
TR864: [trans (0, 0, 0)(4.87804:(0, 0, -1))]
Constructing rotation:
[ 0.997681 0.068058 0 ]
[ -0.068058 0.997681 0 ]
[ 0 0 1 ]
det = 0.999999
Warning: determinant of rotation matrix 0.999999 != +-1
r = 0.136116 t = 2.99536 theta = 0.0681107
x = 0 y = 0 z = -0.136116
computed rotation: [trans (0, 0, 0)(3.90245:(0, 0, -1))]
TR865: [trans (0, 0, 0)(3.90245:(0, 0, -1))]
Constructing rotation:
[ 0.998696 0.051061 0 ]
[ -0.051061 0.998696 0 ]
[ 0 0 1 ]
det = 1
Warning: determinant of rotation matrix 1 != +-1
r = 0.102122 t = 2.99739 theta = 0.0510832
x = 0 y = 0 z = -0.102122
computed rotation: [trans (0, 0, 0)(2.92685:(0, 0, -1))]
TR866: [trans (0, 0, 0)(2.92685:(0, 0, -1))]
Constructing rotation:
[ 0.99942 0.034049 0 ]
[ -0.034049 0.99942 0 ]
[ 0 0 1 ]
det = 1
Warning: determinant of rotation matrix 1 != +-1
r = 0.068098 t = 2.99884 theta = 0.0340556
x = 0 y = 0 z = -0.068098
computed rotation: [trans (0, 0, 0)(1.95124:(0, 0, -1))]
TR867: [trans (0, 0, 0)(1.95124:(0, 0, -1))]
Constructing rotation:
[ 0.999855 0.017027 0 ]
[ -0.017027 0.999855 0 ]
[ 0 0 1 ]
det = 1
Warning: determinant of rotation matrix 1 != +-1
r = 0.034054 t = 2.99971 theta = 0.0170278
x = 0 y = 0 z = -0.034054
computed rotation: [trans (0, 0, 0)(0.975622:(0, 0, -1))]
TR868: [trans (0, 0, 0)(0.975622:(0, 0, -1))]
Total lines read: 25556
Done reading input.
S199 distance from origin: 259.808
S299 distance from origin: 259.808
S820 distance from origin: 0.173205
S821 distance from origin: 0.173205
S381 distance from origin: 68.7408
S382 distance from origin: 52.243
S383 distance from origin: 69.8406
S384 distance from origin: 85.2386
S391 distance from origin: 40.6945
S392 distance from origin: 29.1461
S393 distance from origin: 17.5976
S394 distance from origin: 6.04919
S395 distance from origin: 5.49926
S396 distance from origin: 17.0477
S397 distance from origin: 28.5962
S398 distance from origin: 40.1446
S399 distance from origin: 51.6931
S400 distance from origin: 23.9768
S404 distance from origin: 43.9941
S405 distance from origin: 43.9941
S406 distance from origin: 43.9958
S407 distance from origin: 68.7408
S408 distance from origin: 69.8406
S409 distance from origin: 85.2386
S412 distance from origin: 0.548
S413 distance from origin: 0.5334
S414 distance from origin: 0.621665
S415 distance from origin: 0.7112
S416 distance from origin: 0.83312
S417 distance from origin: 0.3175
S418 distance from origin: 0.555625
S419 distance from origin: 0.835
S422 distance from origin: 0.548
S423 distance from origin: 0.5334
S424 distance from origin: 0.621665
S425 distance from origin: 0.7112
S426 distance from origin: 0.83312
S427 distance from origin: 0.3175
S428 distance from origin: 0.555625
S429 distance from origin: 0.835
S432 distance from origin: 0.548
S433 distance from origin: 0.5334
S434 distance from origin: 0.621665
S435 distance from origin: 0.7112
S436 distance from origin: 0.83312
S437 distance from origin: 0.3175
S438 distance from origin: 0.555625
S439 distance from origin: 0.835
S442 distance from origin: 0.548
S443 distance from origin: 0.5334
S444 distance from origin: 0.621665
S445 distance from origin: 0.7112
S446 distance from origin: 0.83312
S447 distance from origin: 0.3175
S448 distance from origin: 0.555625
S449 distance from origin: 0.835
S450 distance from origin: 0.55626
S451 distance from origin: 0.3302
S452 distance from origin: 0.490112
S453 distance from origin: 0.7112
S454 distance from origin: 0.83439
S455 distance from origin: 0.835
S750 distance from origin: 51.0155
S751 distance from origin: 40.017
S752 distance from origin: 39.1921
S753 distance from origin: 29.7059
S754 distance from origin: 28.881
S755 distance from origin: 28.0561
S756 distance from origin: 18.5699
S757 distance from origin: 17.745
S758 distance from origin: 16.9201
S759 distance from origin: 7.43391
S760 distance from origin: 6.60902
S761 distance from origin: 5.78413
S762 distance from origin: 4.11456
S763 distance from origin: 4.93945
S764 distance from origin: 5.76433
S765 distance from origin: 15.2506
S766 distance from origin: 16.0754
S767 distance from origin: 27.074
S781 distance from origin: 0.32766
S782 distance from origin: 0.492338
S783 distance from origin: 0.2
S784 distance from origin: 0.3
S790 distance from origin: 2.52553
S791 distance from origin: 0.855954
S462 distance from origin: 0.47625
S463 distance from origin: 0.755015
S464 distance from origin: 0.83058
S465 distance from origin: 0.835
S472 distance from origin: 0.548
S473 distance from origin: 0.5334
S474 distance from origin: 0.621665
S475 distance from origin: 0.7112
S476 distance from origin: 0.83312
S477 distance from origin: 0.3175
S478 distance from origin: 0.555625
S479 distance from origin: 0.835
S482 distance from origin: 0.548
S483 distance from origin: 0.5334
S484 distance from origin: 0.621665
S485 distance from origin: 0.7112
S486 distance from origin: 0.83312
S487 distance from origin: 0.3175
S488 distance from origin: 0.555625
S489 distance from origin: 0.835
S492 distance from origin: 0.548
S493 distance from origin: 0.5334
S494 distance from origin: 0.621665
S495 distance from origin: 0.7112
S496 distance from origin: 0.83312
S497 distance from origin: 0.3175
S498 distance from origin: 0.555625
S499 distance from origin: 0.835
S510 distance from origin: 0.24765
S511 distance from origin: 0.31623
S512 distance from origin: 0.47625
S513 distance from origin: 0.755015
S514 distance from origin: 0.83058
S515 distance from origin: 0.835
S520 distance from origin: 0.24765
S521 distance from origin: 0.31623
S522 distance from origin: 0.47625
S523 distance from origin: 0.755015
S524 distance from origin: 0.83058
S525 distance from origin: 0.835
S532 distance from origin: 0.47625
S533 distance from origin: 0.755015
S534 distance from origin: 0.83058
S535 distance from origin: 0.835
S542 distance from origin: 0.548
S543 distance from origin: 0.5334
S544 distance from origin: 0.621665
S545 distance from origin: 0.7112
S546 distance from origin: 0.83312
S547 distance from origin: 0.3175
S548 distance from origin: 0.555625
S549 distance from origin: 0.835
S552 distance from origin: 0.548
S553 distance from origin: 0.5334
S554 distance from origin: 0.621665
S555 distance from origin: 0.7112
S556 distance from origin: 0.83312
S557 distance from origin: 0.3175
S558 distance from origin: 0.555625
S559 distance from origin: 0.835
S560 distance from origin: 0.24765
S561 distance from origin: 0.31623
S562 distance from origin: 0.47625
S563 distance from origin: 0.755015
S564 distance from origin: 0.83058
S565 distance from origin: 0.835
S572 distance from origin: 0.548
S573 distance from origin: 0.5334
S574 distance from origin: 0.621665
S575 distance from origin: 0.7112
S576 distance from origin: 0.83312
S577 distance from origin: 0.3175
S578 distance from origin: 0.555625
S579 distance from origin: 0.835
S580 distance from origin: 0.24765
S581 distance from origin: 0.31623
S582 distance from origin: 0.47625
S583 distance from origin: 0.755015
S584 distance from origin: 0.83058
S585 distance from origin: 0.835
S592 distance from origin: 0.548
S593 distance from origin: 0.5334
S594 distance from origin: 0.621665
S595 distance from origin: 0.7112
S596 distance from origin: 0.83312
S597 distance from origin: 0.3175
S598 distance from origin: 0.555625
S599 distance from origin: 0.835
S612 distance from origin: 0.548
S613 distance from origin: 0.5334
S614 distance from origin: 0.621665
S615 distance from origin: 0.7112
S616 distance from origin: 0.83312
S617 distance from origin: 0.3175
S618 distance from origin: 0.555625
S619 distance from origin: 0.835
S622 distance from origin: 0.47625
S623 distance from origin: 0.755015
S624 distance from origin: 0.83058
S625 distance from origin: 0.835
S630 distance from origin: 0.24765
S631 distance from origin: 0.31623
S632 distance from origin: 0.47625
S633 distance from origin: 0.755015
S634 distance from origin: 0.83058
S635 distance from origin: 0.835
S642 distance from origin: 0.548
S643 distance from origin: 0.5334
S644 distance from origin: 0.621665
S645 distance from origin: 0.7112
S646 distance from origin: 0.83312
S647 distance from origin: 0.3175
S648 distance from origin: 0.555625
S649 distance from origin: 0.835
S652 distance from origin: 0.47625
S653 distance from origin: 0.755015
S654 distance from origin: 0.83058
S655 distance from origin: 0.835
S662 distance from origin: 0.548
S663 distance from origin: 0.5334
S664 distance from origin: 0.621665
S665 distance from origin: 0.7112
S666 distance from origin: 0.83312
S667 distance from origin: 0.3175
S668 distance from origin: 0.555625
S669 distance from origin: 0.835
S672 distance from origin: 0.548
S673 distance from origin: 0.5334
S674 distance from origin: 0.621665
S675 distance from origin: 0.7112
S676 distance from origin: 0.83312
S677 distance from origin: 0.3175
S678 distance from origin: 0.555625
S679 distance from origin: 0.835
S682 distance from origin: 0.548
S683 distance from origin: 0.5334
S684 distance from origin: 0.621665
S685 distance from origin: 0.7112
S686 distance from origin: 0.83312
S687 distance from origin: 0.3175
S688 distance from origin: 0.555625
S689 distance from origin: 0.835
S692 distance from origin: 0.548
S693 distance from origin: 0.5334
S694 distance from origin: 0.621665
S695 distance from origin: 0.7112
S696 distance from origin: 0.83312
S697 distance from origin: 0.3175
S698 distance from origin: 0.555625
S699 distance from origin: 0.835
S712 distance from origin: 0.548
S713 distance from origin: 0.5334
S714 distance from origin: 0.621665
S715 distance from origin: 0.7112
S716 distance from origin: 0.83312
S717 distance from origin: 0.3175
S718 distance from origin: 0.555625
S719 distance from origin: 0.835
S722 distance from origin: 0.548
S723 distance from origin: 0.5334
S724 distance from origin: 0.621665
S725 distance from origin: 0.7112
S726 distance from origin: 0.83312
S727 distance from origin: 0.3175
S728 distance from origin: 0.555625
S729 distance from origin: 0.835
S732 distance from origin: 0.548
S733 distance from origin: 0.5334
S734 distance from origin: 0.621665
S735 distance from origin: 0.7112
S736 distance from origin: 0.83312
S737 distance from origin: 0.3175
S738 distance from origin: 0.555625
S739 distance from origin: 0.835
S742 distance from origin: 0.548
S743 distance from origin: 0.5334
S744 distance from origin: 0.621665
S745 distance from origin: 0.7112
S746 distance from origin: 0.83312
S747 distance from origin: 0.3175
S748 distance from origin: 0.555625
S749 distance from origin: 0.835
S900 distance from origin: 0.238125
S901 distance from origin: 0.277813
S902 distance from origin: 0.548
S903 distance from origin: 0.5334
S904 distance from origin: 0.621665
S905 distance from origin: 0.65532
S906 distance from origin: 0.889
S907 distance from origin: 0.92964
S908 distance from origin: 1.00076
S910 distance from origin: 0.238125
S911 distance from origin: 0.277813
S912 distance from origin: 0.548
S913 distance from origin: 0.5334
S914 distance from origin: 0.621665
S915 distance from origin: 0.65532
S916 distance from origin: 0.889
S917 distance from origin: 0.92964
S918 distance from origin: 1.00076
S920 distance from origin: 0.238125
S921 distance from origin: 0.277813
S922 distance from origin: 0.548
S923 distance from origin: 0.5334
S924 distance from origin: 0.621665
S925 distance from origin: 0.65532
S926 distance from origin: 0.889
S927 distance from origin: 0.92964
S928 distance from origin: 1.00076
S930 distance from origin: 0.238125
S931 distance from origin: 0.277813
S932 distance from origin: 0.548
S933 distance from origin: 0.5334
S934 distance from origin: 0.621665
S935 distance from origin: 0.65532
S936 distance from origin: 0.889
S937 distance from origin: 0.92964
S938 distance from origin: 1.00076
S940 distance from origin: 0.238125
S941 distance from origin: 0.277813
S942 distance from origin: 0.548
S943 distance from origin: 0.5334
S944 distance from origin: 0.621665
S945 distance from origin: 0.65532
S946 distance from origin: 0.889
S947 distance from origin: 0.92964
S948 distance from origin: 1.00076
S950 distance from origin: 0.238125
S951 distance from origin: 0.277813
S952 distance from origin: 0.548
S953 distance from origin: 0.5334
S954 distance from origin: 0.621665
S955 distance from origin: 0.65532
S956 distance from origin: 0.889
S957 distance from origin: 0.92964
S958 distance from origin: 1.00076
S982 distance from origin: 57.3298
S984 distance from origin: 54.3052
S981 distance from origin: 51.8305
S983 distance from origin: 51.5556
S970 distance from origin: 48.531
S971 distance from origin: 36.9825
S972 distance from origin: 25.4341
S973 distance from origin: 13.8856
S974 distance from origin: 2.33719
S975 distance from origin: 9.21126
S976 distance from origin: 20.7597
S977 distance from origin: 32.3082
S960 distance from origin: 5.715
S961 distance from origin: 5.87375
S110 distance from origin: 43.9941
S111 distance from origin: 43.1281
S112 distance from origin: 42.262
S113 distance from origin: 41.396
S114 distance from origin: 40.53
S115 distance from origin: 39.664
S116 distance from origin: 38.7979
S117 distance from origin: 36.3731
S118 distance from origin: 27.7128
S119 distance from origin: 19.0526
S120 distance from origin: 10.3923
S121 distance from origin: 1.73205
S122 distance from origin: 1.73205
S123 distance from origin: 10.3923
S124 distance from origin: 19.0526
S125 distance from origin: 27.7128
S126 distance from origin: 36.3731
S127 distance from origin: 38.7979
S128 distance from origin: 40.53
S129 distance from origin: 42.262
S130 distance from origin: 43.1281
S131 distance from origin: 43.9941
S1100 distance from origin: 7.12
S1101 distance from origin: 7.2
S1102 distance from origin: 7.35
S1103 distance from origin: 7.5
S1104 distance from origin: 7.75
S1105 distance from origin: 8
S1106 distance from origin: 8.25
S1107 distance from origin: 8.5
S1108 distance from origin: 8.85
S1109 distance from origin: 9.2
S1110 distance from origin: 9.5
S1111 distance from origin: 9.85
S1112 distance from origin: 10.2
S1113 distance from origin: 10.5
S1114 distance from origin: 10.85
S1115 distance from origin: 11.2
S1116 distance from origin: 11.5
S1117 distance from origin: 11.75
S1118 distance from origin: 12
S1119 distance from origin: 12.2
S1120 distance from origin: 12.4
S1121 distance from origin: 12.55
S1150 distance from origin: 15.14
S1151 distance from origin: 15.3
S1152 distance from origin: 15.5
S1153 distance from origin: 16
S1154 distance from origin: 16.5
S1155 distance from origin: 17
S1156 distance from origin: 17.5
S1157 distance from origin: 18
S1158 distance from origin: 18.5
S1159 distance from origin: 19
S1160 distance from origin: 19.5
S1161 distance from origin: 20
S1162 distance from origin: 20.5
S1163 distance from origin: 20.75
S1164 distance from origin: 20.96
S991 distance from origin: 55.4546
S992 distance from origin: 54.887
S993 distance from origin: 55.7845
S881 distance from origin: 55.3886
S882 distance from origin: 55.9209
S883 distance from origin: 54.9486
S994 distance from origin: 6.58368
S995 distance from origin: 13.1655
S884 distance from origin: 14.5936
S885 distance from origin: 21.437
S996 distance from origin: 53.7476
S997 distance from origin: 53.73
S998 distance from origin: 54.0775
S999 distance from origin: 53.0701
S886 distance from origin: 54.2315
S887 distance from origin: 54.2139
S888 distance from origin: 53.7916
S889 distance from origin: 53.0701
S100 distance from origin: 43.9941
S150 distance from origin: 43.1281
S151 distance from origin: 42.262
S153 distance from origin: 40.53
S154 distance from origin: 38.7979
S155 distance from origin: 36.3731
S156 distance from origin: 27.7128
S157 distance from origin: 19.0526
S158 distance from origin: 10.3923
S159 distance from origin: 1.73205
S161 distance from origin: 1.73205
S162 distance from origin: 10.3923
S163 distance from origin: 19.0526
S164 distance from origin: 27.7128
S165 distance from origin: 36.3731
S166 distance from origin: 38.7979
S167 distance from origin: 40.53
S168 distance from origin: 42.262
S169 distance from origin: 43.1281
S172 distance from origin: 38.1051
S200 distance from origin: 43.9941
S101 distance from origin: 52.7929
S201 distance from origin: 52.7929
S202 distance from origin: 53.07
S102 distance from origin: 68.7408
S103 distance from origin: 55.0938
S1999 distance from origin: 6.43763
S2000 distance from origin: 6.58368
S2999 distance from origin: 6.88886
S2919 distance from origin: 12.8137
S2010 distance from origin: 13.1762
S2200 distance from origin: 13.4366
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check: __n (which is 3) >= this->size() (which is 3)
Aborted
Ok, so mcnp2cad doesnt support the arb card, that could be why its failing
ah, that's too bad. Thanks for all the help though!
Its something we can add to the development roadmap, check back sometime :)
Closing this for now. I've added issue #72 to clarify what needs doing and so we don't forget about it :)
Hello, I built mcnp2cad from the CGM repo (
./tools/mcnp2cad
) and was trying to convert my MCNP file, but ran into a segmentation fault:has anyone encountered something like this?