File tree 1 file changed +12
-11
lines changed
1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export class HubbardVContextProvider extends HubbardUContextProvider {
17
17
...defaultHubbardConfig ,
18
18
atomicSpecies : this . firstSpecies ,
19
19
atomicSpecies2 : this . secondSpecies ,
20
+ siteIndex2 : this . uniqueElements ?. length > 1 ? 2 : defaultHubbardConfig . siteIndex2 ,
20
21
} ,
21
22
] ;
22
23
}
@@ -66,6 +67,11 @@ export class HubbardVContextProvider extends HubbardUContextProvider {
66
67
enum : this . uniqueElements ,
67
68
default : this . firstSpecies ,
68
69
} ,
70
+ siteIndex : {
71
+ type : "integer" ,
72
+ title : "Site no 1" ,
73
+ default : defaultHubbardConfig . siteIndex ,
74
+ } ,
69
75
atomicOrbital : {
70
76
type : "string" ,
71
77
title : "Orbital 1" ,
@@ -97,6 +103,12 @@ export class HubbardVContextProvider extends HubbardUContextProvider {
97
103
enum : this . uniqueElements ,
98
104
default : this . secondSpecies ,
99
105
} ,
106
+ siteIndex2 : {
107
+ type : "integer" ,
108
+ title : "Site no 2" ,
109
+ default :
110
+ this . uniqueElements ?. length > 1 ? 2 : defaultHubbardConfig . siteIndex2 ,
111
+ } ,
100
112
atomicOrbital2 : {
101
113
type : "string" ,
102
114
title : "Orbital 2" ,
@@ -122,17 +134,6 @@ export class HubbardVContextProvider extends HubbardUContextProvider {
122
134
] ,
123
135
default : defaultHubbardConfig . atomicOrbital ,
124
136
} ,
125
- siteIndex : {
126
- type : "integer" ,
127
- title : "Site no 1" ,
128
- default : defaultHubbardConfig . siteIndex ,
129
- } ,
130
- siteIndex2 : {
131
- type : "integer" ,
132
- title : "Site no 2" ,
133
- default :
134
- this . uniqueElements ?. length > 1 ? 2 : defaultHubbardConfig . siteIndex2 ,
135
- } ,
136
137
hubbardVValue : {
137
138
type : "number" ,
138
139
title : "V (eV)" ,
You can’t perform that action at this time.
0 commit comments