1
block data initial_smd_system_data
3
#include "smd_system_data.fh"
5
data smd_system_cname /smd_system_nc*" "/
7
data smd_system_rname /"atom",
32
subroutine smd_system_set_component(aname,sp_name)
36
#include "mafdecls.fh"
39
#include "smd_system_data.fh"
44
character*32 pname,tag
50
pname = "smd_system_set_component"
52
c write(*,*) "in "//pname
60
result = inp_match(nrec,ocase,aname,smd_system_rname,i)
63
> pname//'no component '//tag,0, RTDB_ERR)
65
smd_system_cname(i) = sp_name
70
subroutine smd_system_unset_component(aname)
74
#include "mafdecls.fh"
77
#include "smd_system_data.fh"
81
character*32 pname,tag
87
pname = "smd_system_set_component"
89
c write(*,*) "in "//pname
97
result = inp_match(nrec,ocase,aname,smd_system_rname,i)
100
> pname//'no component '//tag,0, RTDB_ERR)
102
smd_system_cname(i) = " "
107
subroutine smd_system_get_component(sp_name,aname,oexist)
109
#include "errquit.fh"
111
#include "mafdecls.fh"
114
#include "smd_system_data.fh"
117
character*(*) sp_name
119
character*32 pname,tag
122
logical oexist,result
125
pname = "smd_system_get_component"
127
c write(*,*) "in "//pname
135
result = inp_match(nrec,ocase,aname,smd_system_rname,i)
138
> pname//'no component '//tag,0, RTDB_ERR)
140
sp_name = smd_system_cname(i)
141
oexist = sp_name.ne." "
146
subroutine smd_system_print(un)
148
#include "errquit.fh"
150
#include "mafdecls.fh"
153
#include "smd_system_data.fh"
160
pname = "smd_system_print"
162
c write(*,*) "in "//pname
164
if(smd_system_cname(i).ne."") then
165
write(un,'(A16,"= ",A16)') smd_system_rname(i),
166
> smd_system_cname(i)