OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
radioss_title.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| radioss_title ../engine/source/engine/radioss_title.F
25!||--- called by ------------------------------------------------------
26!|| radioss2 ../engine/source/engine/radioss2.f
27!||--- calls -----------------------------------------------------
28!|| printcenter ../engine/source/engine/radioss_title.F
29!||====================================================================
30 SUBROUTINE radioss_title(IOUT,CPUNAM,ARCHTITLE,
31 * FILNAM,ROOTLEN,CHRUN,IRESP,IFLAG)
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C C o m m o n B l o c k s
38C-----------------------------------------------
39#include "build_info.inc"
40#include "commandline.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 INTEGER IOUT,ROOTLEN,IRESP,IFLAG
45 CHARACTER CPUNAM*20,FILNAM*100,CHRUN*4,ARCHTITLE*66
46C-----------------------------------------------
47C L o c a l V a r i a b l e s
48C-----------------------------------------------
49 INTEGER LEN,LEN_RAD,LENBT,LENCPUNAM,LENARCHTIT,LBT
50 CHARACTER RADVERS*68,COPYRIGHTLINE*68,
51 * arch_tit*66
52C-----------------------------------------------
53 lenarchtit=len_trim(archtitle)
54 arch_tit(1:66)=''
55 arch_tit(1:lenarchtit)=archtitle(1:lenarchtit)
56
57 len=len_trim(vers)
58 lbt=len_trim(btag)
59
60 IF( got_inspire_alm == 1)THEN
61 WRITE(radvers,'(A,A)') 'Altair Solver ',vers
62 len = len + 14
63 ELSE
64 WRITE(radvers,'(A)') 'OpenRadioss Engine'
65 len = len_trim(radvers)
66 ENDIF
67
68 lenbt = len_trim(btag)
69 lencpunam=len_trim(cpunam)
70 lenarchtit=len_trim(arch_tit)
71
72 yearstring(1:4)=bdate(8:11)
73 WRITE(copyrightline,'(A,A,A)') 'COPYRIGHT (C) 1986-'//yearstring(1:4)//' Altair Engineering, Inc.'
74
75 CALL printcenter(" ",0,iout,1)
76 CALL printcenter(" ",0,iout,0)
77 CALL printcenter(" ",0,iout,0)
78 CALL printcenter(radvers,len,iout,2)
79 CALL printcenter(" ",0,iout,0)
80 CALL printcenter("Non-linear Finite Element Analysis Software",
81 . 43,iout,2)
82 CALL printcenter(" ",0,iout,0)
83 CALL printcenter(" ",0,iout,0)
84 CALL printcenter(" ",0,iout,0)
85 CALL printcenter(arch_tit,lenarchtit,iout,2)
86 IF (iresp == 1) THEN
87 CALL printcenter("Extended Single Precision Version",33,iout,2)
88 ELSE
89 CALL printcenter("Double Precision Version",24,iout,2)
90 ENDIF
91 IF (pmsg ==1)THEN
92 CALL printcenter(msgo,len_msg,iout,2)
93 ELSE
94 CALL printcenter(" ",0,iout,0)
95 ENDIF
96 CALL printcenter(" ",0,iout,0)
97 CALL printcenter(btag,lenbt,iout,3)
98 CALL printcenter(" ",0,iout,1)
99 CALL printcenter("OpenRadioss Software",20,iout,3)
100 CALL printcenter(copyrightline,64,iout,3)
101 CALL printcenter("Licensed under GNU Affero General Public License.",49,iout,3)
102 CALL printcenter("See License file.",17,iout,3)
103 CALL printcenter(" ",0,iout,1)
104 WRITE(iout,'(A)') ' '
105 IF (iflag==1)
106 * WRITE(iout,'(A,A,A,A)') ' ROOT: ',filnam(1:rootlen),
107 * ' RESTART: ',chrun
108
109 END
110
111
112!||====================================================================
113!|| printcenter ../engine/source/engine/radioss_title.F
114!||--- called by ------------------------------------------------------
115!|| radioss2 ../engine/source/engine/radioss2.F
116!|| radioss_title ../engine/source/engine/radioss_title.F
117!||====================================================================
118 SUBROUTINE printcenter(ARRAY,ARRLEN,LINOUT,FLAG)
119C-----------------------------------------------
120C I m p l i c i t T y p e s
121C-----------------------------------------------
122#include "implicit_f.inc"
123C-----------------------------------------------
124C D u m m y A r g u m e n t s
125C-----------------------------------------------
126 INTEGER ARRLEN, LINOUT,FLAG
127 CHARACTER ARRAY(*)
128C-----------------------------------------------
129C L o c a l V a r i a b l e s
130C-----------------------------------------------
131 CHARACTER PRINTOUT(72)
132 INTEGER POS,I
133C-----------------------------------------------
134C Initialisation
135 printout=' '
136 printout(1)='*'
137 printout(2)='*'
138 printout(71)='*'
139 printout(72)='*'
140
141C Flag = 0 ligne blanche
142
143 IF (flag==1)THEN
144C Flag = 1 que des * dans la ligne
145 printout(1:72)='*'
146
147
148 ELSEIF (flag==2) THEN
149C du texte center
150
151C Test si sortie n'excede pas 68 cararct res
152 IF (arrlen>68) THEN
153 WRITE(linout,'(A)') "ERROR PRINTOUT FORMAT"
154 RETURN
155 ENDIF
156
157 pos= 3+(68-arrlen)/2
158
159 DO i=1,arrlen
160 printout(pos+i-1)=array(i)
161 ENDDO
162
163 ELSEIF (flag==3) THEN
164C print left
165 pos = 4
166 DO i=1,arrlen
167 printout(pos+i-1)=array(i)
168 ENDDO
169
170
171 ENDIF
172
173 WRITE(linout,'(72A)') printout
174
175 END
subroutine radioss_title(iout, cpunam, archtitle, filnam, rootlen, chrun, iresp, iflag)
subroutine printcenter(array, arrlen, linout, flag)
subroutine radioss2(idata, midata, rdata, mrdata)
Definition radioss2.F:143