Skip to content

Commit

Permalink
SOF-7298: include lforcet
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Apr 22, 2024
1 parent dba1db3 commit 27b6e3e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -46,8 +46,8 @@
"underscore.string": "^3.3.4"
},
"devDependencies": {
"@exabyte-io/ade.js": "git+https://github.com/Exabyte-io/ade.js.git#08079232bb99054fb7cc045c104fe57231870034",
"@exabyte-io/application-flavors.js": "git+https://github.com/Exabyte-io/application-flavors.git#658d3fabd11181034d83b3fb47c3cea105f2e0fa",
"@exabyte-io/ade.js": "git+https://github.com/Exabyte-io/ade.js.git#ddc4e3c2d9756b18d0a11b2175afa954c93ab613",
"@exabyte-io/application-flavors.js": "git+https://github.com/Exabyte-io/application-flavors.git#26d0df9611793b301d73bb085d96a067eae45c6f",
"@exabyte-io/eslint-config": "^2022.11.17-0",
"@exabyte-io/ide.js": "2024.3.26-0",
"@exabyte-io/mode.js": "git+https://github.com/Exabyte-io/mode.js.git#5b4252c75243eac7155d537333aacbac51ab8247",
Expand Down
16 changes: 16 additions & 0 deletions src/context/providers/NonCollinearMagnetizationContextProvider.js
Expand Up @@ -51,6 +51,7 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm
isConstrainedMagnetization: false,
isArbitrarySpinAngle: false,
isFixedMagnetization: false,
lforcet: true,
spinAngles,
startingMagnetization,
constrainedMagnetization: {
Expand All @@ -68,6 +69,13 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm
get uiSchemaStyled() {
return {
isExistingChargeDensity: {},
lforcet: {
"ui:readonly": !this.isExistingChargeDensity,
"ui:widget": "radio",
"ui:options": {
inline: true,
},
},
isArbitrarySpinDirection: {},
spinAngles: {
items: {
Expand Down Expand Up @@ -141,6 +149,14 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm
title: "Start calculation from existing charge density",
default: false,
},
lforcet: {
title: "Set lforcet",
type: "boolean",
oneOf: [
{ const: true, title: "True" },
{ const: false, title: "False" },
],
},
isStartingMagnetization: {
type: "boolean",
title: "Set starting magnetization",
Expand Down

0 comments on commit 27b6e3e

Please sign in to comment.