OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
build_msg.F File Reference
#include "implicit_f.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine build_msg ()

Function/Subroutine Documentation

◆ build_msg()

subroutine build_msg

Definition at line 36 of file build_msg.F.

37C-----------------------------------------------
38C M o d u l e s
39C-----------------------------------------------
40 USE message_mod
42C-----------------------------------------------
43C I m p l i c i t T y p e s
44C-----------------------------------------------
45#include "implicit_f.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 CHARACTER(LEN=NCHARLINE100) BUFMSG(100)
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53 CHARACTER(LEN=NCHARLINE100) LINE,KEY,KEYST
54 INTEGER I,J,ID,ITYPE,INDX,SBUFMSG,ISTYPE
55C predim
56 smessages=1
57 DO i=1,100
58 bufmsg(i)=' '
59 END DO
60 DO i=1,smessagesfile
61C fill MESSAGES
62 line=messagesfile(i)
63 IF (line(1:9)=='/MESSAGE/') THEN
64 CALL fredec2i(line,id)
65 IF (id>smessages) THEN
66 smessages=id
67 END IF
68 END IF
69 END DO
70 smessages=min(smessages,smessagesmax)
71 ALLOCATE(messages(2,smessages))
72 id=0
73 sbufmsg=0
74 itype=0
75 DO i=1,smessagesfile
76C remplir MESSAGES
77 line=messagesfile(i)
78 IF (line(1:9)=='/MESSAGE/') THEN
79 IF (id>0.AND.id<=smessagesmax.AND.itype/=0) THEN
80 CALL stock_msg(id,itype,sbufmsg,bufmsg)
81 END IF
82 sbufmsg=0
83 id=1
84 CALL fredec2i(line,id)
85 CALL fredec3(line,key)
86 itype=1
87 IF (key(1:5)=='TITLE') THEN
88 itype=1
89 ELSE IF (key(1:11)=='DESCRIPTION') THEN
90 itype=2
91 END IF
92 ELSE
93 IF (id>0.AND.line(1:1)/='#') THEN
94 sbufmsg=sbufmsg+1
95 bufmsg(sbufmsg)=line
96 END IF
97 END IF
98 END DO
99 IF (id>0.AND.id<=smessagesmax.AND.itype/=0) THEN
100 CALL stock_msg(id,itype,sbufmsg,bufmsg)
101 END IF
subroutine fredec2i(line, id)
Definition fredec2i.F:33
subroutine fredec3(line, key)
Definition fredec3.F:33
#define min(a, b)
Definition macros.h:20
initmumps id
integer, parameter ncharline100
subroutine stock_msg(id, itype, sbufmsg, bufmsg)
Definition stock_msg.F:31