Skip to content

Commit

Permalink
add opt as a job type (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobfilik authored Jan 15, 2025
1 parent 101ca7c commit 5bec070
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/FormPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function FormPage(props: formProps) {
properties: {
Technique: {
title: "Technique",
enum: ["XAS", "XES"],
enum: ["XAS", "XES", "OPT"],
default: "XAS",
},
Functional: {
Expand Down Expand Up @@ -207,6 +207,17 @@ function FormPage(props: formProps) {
formOutput += "Normalize true" + "\n";
formOutput += "MDOriginAdjustMethod 1" + "\n";
formOutput += "end" + "\n\n";
} else if (formData.Technique == "OPT") {
formOutput +=
"! " + formData.Functional + " DKH2 " + formData.Basis + " SARC/J OPT";

if (formData.Solvent != "None") {
formOutput += "CPCM(" + formData.Solvent + ") ";
}
formOutput += "\n";
formOutput += "%maxcore " + formData.MemoryPerCore + "\n\n";
formOutput += "%pal nprocs " + formData.CPUs + "\n";
formOutput += "end" + "\n\n";
}

if (formData.Solvent != "None") {
Expand Down Expand Up @@ -238,7 +249,7 @@ function FormPage(props: formProps) {
if (downloadLinkRef.current) {
const link = downloadLinkRef.current;
link.href = URL.createObjectURL(blob);
link.download = "SimulationOutput.txt";
link.download = "JobInput.txt";
link.click();
}
}
Expand Down

0 comments on commit 5bec070

Please sign in to comment.