Skip to content

Commit

Permalink
Fix PEEQ,ENER,ELSE,E.... csv print trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
efirvida committed Jan 22, 2024
1 parent 697597b commit cbdcfa4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/printoutintcsv.f
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ subroutine printoutintcsv(prlab,ipkon,lakon,stx,eei,xstate,ener,
endif
!
if(iorien.eq.0) then
write(s_unit,'(i0,",",i0,6(",",e13.6))')
write(s_unit,'(i0,",",i0,","6(e13.6,:,","))')
& nelem,j,(stx(k,j,nelel),k=1,6)
else
call transformatrix(orab(1,iorien),coords(1,j),a)
Expand Down Expand Up @@ -455,7 +455,7 @@ subroutine printoutintcsv(prlab,ipkon,lakon,stx,eei,xstate,ener,
endif
!
if(iorien.eq.0) then
write(e_unit,'(i0,",",i0,6(",",e13.6))')
write(e_unit,'(i0,",",i0,","6(e13.6,:,","))')
& nelem,j,(eei(k,j,nelel),k=1,6)
else
call transformatrix(orab(1,iorien),coords(1,j),a)
Expand Down Expand Up @@ -511,7 +511,7 @@ subroutine printoutintcsv(prlab,ipkon,lakon,stx,eei,xstate,ener,
endif
!
if(iorien.eq.0) then
write(me_unit,'(i0,",",i0,6(",",e13.6))')
write(me_unit,'(i0,",",i0,","6(e13.6,:,","))')
& nelem,j,(eme(k,j,nelel),k=1,6)
else
call transformatrix(orab(1,iorien),coords(1,j),a)
Expand Down Expand Up @@ -547,12 +547,12 @@ subroutine printoutintcsv(prlab,ipkon,lakon,stx,eei,xstate,ener,
enddo
elseif(prlab(ii)(1:4).eq.'PEEQ') then
do j=1,mint3d
write(pe_unit,'(i0,",",i0,6(",",e13.6))')
write(pe_unit,'(i0,",",i0,","6(e13.6,:,","))')
& nelem,j,xstate(1,j,nelel)
enddo
elseif(prlab(ii)(1:4).eq.'ENER') then
do j=1,mint3d
write(ener_unit,'(i0,",",i0,6(",",e13.6))')
write(ener_unit,'(i0,",",i0,","6(e13.6,:,","))')
& nelem,j,ener(1,j,nelel)
enddo
elseif(prlab(ii)(1:4).eq.'SDV ') then
Expand Down

0 comments on commit cbdcfa4

Please sign in to comment.