I would like to report a segmentation fault using the Version 3.0.0 32-bit in "Linux/CentOs7" system. But in Windows OS, the TCL script will be executed with no fault.
It occurs when using arguments "<-mass $massDens>" inline with the element command. I'm confused how it happened.
For example, this causes the seg fault and immediately terminats the OpenSees process:
wipe
set np 5
set md1 1
model BasicBuilder -ndm 3 -ndf 6
node 1 0 0 0
node 2 30 0 0
node 3 70 0 0
node 5 0 10 0
node 6 30 10 0
node 7 70 10 0
node 11 0 0 5
node 12 30 0 5
node 13 70 0 5
node 15 0 10 5
node 16 30 10 5
node 17 70 10 5
fix 1 1 1 1 1 1 1
fix 2 1 1 1 1 1 1
fix 3 1 1 1 1 1 1
fix 11 1 1 1 1 1 1
fix 12 1 1 1 1 1 1
fix 13 1 1 1 1 1 1
uniaxialMaterial Steel01 2 345e6 2.06e11 0.1
source Wsection.tcl
# Wsection { secID matID d bf tf tw nfdw nftw nfbf nftf}
Wsection 2 2 .4 .3 .016 .01 15 2 10 2
set ColTransfTag 1
set BeamTransfTag 2
geomTransf Linear $ColTransfTag 1 0 0
geomTransf Linear $BeamTransfTag 0 1 0
element nonlinearBeamColumn 1 1 5 $np 2 $ColTransfTag -mass $md1
element nonlinearBeamColumn 2 5 6 $np 2 $BeamTransfTag -mass $md1
element nonlinearBeamColumn 3 2 6 $np 2 $ColTransfTag -mass $md1
element nonlinearBeamColumn 4 6 7 $np 2 $BeamTransfTag -mass $md1
element nonlinearBeamColumn 5 3 7 $np 2 $ColTransfTag -mass $md1
element nonlinearBeamColumn 11 11 15 $np 2 $ColTransfTag -mass $md1
element nonlinearBeamColumn 12 15 16 $np 2 $BeamTransfTag -mass $md1
element nonlinearBeamColumn 13 12 16 $np 2 $ColTransfTag -mass $md1
element nonlinearBeamColumn 14 16 17 $np 2 $BeamTransfTag -mass $md1
element nonlinearBeamColumn 15 13 17 $np 2 $ColTransfTag -mass $md1
element nonlinearBeamColumn 31 5 15 $np 2 $BeamTransfTag -mass $md1
element nonlinearBeamColumn 32 6 16 $np 2 $BeamTransfTag -mass $md1
element nonlinearBeamColumn 33 7 17 $np 2 $BeamTransfTag -mass $md1
constraints Plain;
numberer Plain;
system SparseSPD;
test EnergyIncr 1.0e-4 200;
algorithm Newton;
integrator LoadControl 1;
analysis Static;
analyze 1;
Seg Fault with "element -mass" command in CentOs7
Moderators: silvia, selimgunay, Moderators