9 |
|
private |
10 |
|
|
11 |
|
type (Vector), pointer, public :: atypes => null() |
12 |
– |
logical :: atype_vector_initialized = .false. |
12 |
|
|
13 |
+ |
|
14 |
|
public :: new_atype |
15 |
|
|
16 |
|
contains |
41 |
|
|
42 |
|
status = 0 |
43 |
|
|
44 |
< |
if (.not.atype_vector_initialized) then |
44 |
> |
if (.not. associated(atypes)) then |
45 |
|
!! There are 16 properties to worry about for now. |
46 |
|
!! Fix this if needed for more atomic properties |
47 |
< |
atypes = initialize(16) |
47 |
> |
write(*,*) "Initializing atypes directly" |
48 |
> |
atypes => initialize(16) |
49 |
|
if (.not.associated(atypes)) then |
50 |
|
status = -1 |
51 |
|
return |
53 |
|
endif |
54 |
|
|
55 |
|
me = addElement(atypes) |
55 |
– |
|
56 |
|
call setElementProperty(atypes, me, "c_ident", c_ident) |
57 |
|
|
58 |
|
l_is_LJ = (is_LJ .ne. 0) |