@@ -4222,10 +4222,10 @@ SUBROUTINE WriteJSONCommon(FileName, Init, p, m, InitInput, FileKind, UnSum, Err
42224222 do i = 1 , size (p% ElemProps)
42234223 if (p% ElemProps(i)% eType == idMemberBeamRect) then
42244224 ! Rectangular beam: MType = 1r. eType = -1
4225- write (UnSum, ' (A,I0,A,F8.4,A,F8.4,A, F10.6,A,F10.6,A,F10.6,A)' , advance= ' no' ) ' {"shape": "rectangle", "type": ' ,p% ElemProps(i)% eType, ' , "SideA":' ,p% ElemProps(i)% Sa(1 ), ' , "SideB":' ,p% ElemProps(i)% Sb(1 ), ' , "SideA_dir":[' ,p% ElemProps(i)% DirCos(1 ,1 ), ' ,' ,p% ElemProps(i)% DirCos(2 ,1 ), ' ,' ,p% ElemProps(i)% DirCos(3 ,1 ),' ]}'
4225+ write (UnSum, ' (A,I0,A,F8.4,A,F8.4,A,F10.6,A,F10.6,A,F10.6,A)' , advance= ' no' ) ' {"shape": "rectangle", "type": ' ,p% ElemProps(i)% eType, ' , "SideA":' ,p% ElemProps(i)% Sa(1 ), ' , "SideB":' ,p% ElemProps(i)% Sb(1 ), ' , "SideA_dir": [' ,p% ElemProps(i)% DirCos(1 ,1 ), ' ,' ,p% ElemProps(i)% DirCos(2 ,1 ), ' ,' ,p% ElemProps(i)% DirCos(3 ,1 ),' ]}'
42264226 else
42274227 ! Cylindrical shapes (MType = 1 or 1c [cylindrical beam], 2 [cable element], 3 [rigid link]. eType = 1, 2, 3)
4228- write (UnSum, ' (A,I0,A,F8.4,A)' , advance= ' no' ) ' {"shape": "cylinder", "type": ' ,p% ElemProps(i)% eType, ' , "Diam":' ,p% ElemProps(i)% D(1 ),' }'
4228+ write (UnSum, ' (A,I0,A,F8.4,A,F10.6,A,F10.6,A,F10.6,A )' , advance= ' no' ) ' {"shape": "cylinder", "type": ' ,p% ElemProps(i)% eType, ' , "Diam":' ,p% ElemProps(i)% D(1 ), ' , "x_e": [ ' ,p % ElemProps(i) % DirCos( 1 , 1 ), ' , ' ,p % ElemProps(i) % DirCos( 2 , 1 ), ' , ' ,p % ElemProps(i) % DirCos( 3 , 1 ), ' ] }'
42294229 endif
42304230 if (i< size (p% ElemProps)) write (UnSum, ' (A)' , advance= ' no' )' ,' // NewLine
42314231 enddo
0 commit comments