1!
2!     CalculiX - A 3-dimensional finite element program
3!              Copyright (C) 1998-2021 Guido Dhondt
4!
5!     This program is free software; you can redistribute it and/or
6!     modify it under the terms of the GNU General Public License as
7!     published by the Free Software Foundation(version 2);
8!
9!
10!     This program is distributed in the hope that it will be useful,
11!     but WITHOUT ANY WARRANTY; without even the implied warranty of
12!     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13!     GNU General Public License for more details.
14!
15!     You should have received a copy of the GNU General Public License
16!     along with this program; if not, write to the Free Software
17!     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18!
19      subroutine writedesi(norien,orname)
20!
21!     writes the orientation design variables in the .dat file
22!
23      implicit none
24!
25      character*80 orname(*)
26!
27      integer j,norien
28!
29!
30      write(5,*)
31      write(5,*) '    D E S I G N   V A R I A B L E S'
32      write(5,*)
33      write(5,'(a8,1x,a11,62x,a15)') 'VARIABLE','ORIENTATION',
34     &    'ROTATION VECTOR'
35      write(5,*)
36!
37      do j=1,norien
38         write(5,'(i5,4x,a80,1x,a5)') (j-1)*3+1,orname(j)(1:80),'Rx   '
39         write(5,'(i5,4x,a80,1x,a5)') (j-1)*3+2,orname(j)(1:80),'Ry   '
40         write(5,'(i5,4x,a80,1x,a5)') (j-1)*3+3,orname(j)(1:80),'Rz   '
41      enddo
42!
43      return
44      end
45
46