Skip to content

Commit

Permalink
SOF-7298: reorder constrained mag and charge density items
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Apr 21, 2024
1 parent 433a427 commit 1f292fc
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions src/context/providers/NonCollinearMagnetizationContextProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm
},
},
isConstrainedMagnetization: {},
constrainedMagnetization: {
"ui:classNames": "col-xs-12",
"ui:readonly": !this.isConstrainedMagnetization,
},
isExistingChargeDensity: {},
spinAngles: {
items: {
Expand All @@ -101,6 +97,10 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm
removable: false,
},
},
constrainedMagnetization: {
"ui:classNames": "col-xs-3",
"ui:readonly": !this.isConstrainedMagnetization,
},
};
}

Expand Down Expand Up @@ -138,33 +138,6 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm
},
},
},
isConstrainedMagnetization: {
type: "boolean",
title: "Set constrained magnetization",
default: false,
},
constrainedMagnetization: {
type: "object",
properties: {
constrainType: {
type: "string",
title: "Constrain type",
enum: [
"none",
"total",
"atomic",
"total direction",
"atomic direction",
],
default: "atomic direction",
},
lambda: {
type: "number",
title: "lambda",
default: 0.0,
},
},
},
isExistingChargeDensity: {
type: "boolean",
title: "Start calculation from existing charge density",
Expand Down Expand Up @@ -194,6 +167,33 @@ export class NonCollinearMagnetizationContextProvider extends mix(JSONSchemaForm
},
},
},
isConstrainedMagnetization: {
type: "boolean",
title: "Set constrained magnetization",
default: false,
},
constrainedMagnetization: {
type: "object",
properties: {
constrainType: {
type: "string",
title: "Constrain type",
enum: [
"none",
"total",
"atomic",
"total direction",
"atomic direction",
],
default: "atomic direction",
},
lambda: {
type: "number",
title: "lambda",
default: 0.0,
},
},
},
},
};
}
Expand Down

0 comments on commit 1f292fc

Please sign in to comment.