Skip to content

Commit f1ce5cd

Browse files
committed
test restart of orca compound jobs
1 parent 018737e commit f1ce5cd

93 files changed

Lines changed: 51668 additions & 6825 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/main/java/autocompchem/run/jobediting/ActionApplier.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@
1717
import autocompchem.files.FileUtils;
1818
import autocompchem.run.EvaluationJob;
1919
import autocompchem.run.Job;
20-
import autocompchem.run.JobConstants;
2120
import autocompchem.run.MonitoringJob;
2221
import autocompchem.run.jobediting.Action.ActionObject;
2322
import autocompchem.run.jobediting.Action.ActionType;
2423
import autocompchem.run.jobediting.DataArchivingRule.ArchivingTaskType;
25-
import autocompchem.utils.NumberUtils;
2624
import autocompchem.utils.SetUtils;
2725
import autocompchem.utils.StringUtils;
2826
import autocompchem.wiro.WIROConstants;

src/main/java/autocompchem/run/jobediting/DataArchivingRule.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class DataArchivingRule
2727
/*
2828
* Placeholder for the base name of the file.
2929
*/
30-
public static final String BASENAME_PLHLD = "BASENAME_PLHLD";
30+
public static final String BASENAME_PLHLD = "BASENAME";
3131

3232
/**
3333
* Defines if a data archiving rule is meant for moving, copying or removing
@@ -116,8 +116,7 @@ public DataArchivingRule(ArchivingTaskType type, String pattern)
116116
* the pathname.
117117
* @param newName the new name for the file. Used only if the type is
118118
* {@link ArchivingTaskType#RENAME_COPY_LAST_SEQUENTIAL} or
119-
* {@link ArchivingTaskType#RENAME_COPY_INDEXED}
120-
* or {@link ArchivingTaskType#RENAME_COPY_BASENAME_PLHLD}.
119+
* {@link ArchivingTaskType#RENAME_COPY_BASENAME_IDX}
121120
*/
122121
public DataArchivingRule(ArchivingTaskType type, String pattern, String newName)
123122
{

src/main/java/autocompchem/wiro/chem/ChemSoftInputWriter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ else if (params.contains(ChemSoftConstants.PARJOBDETAILS))
295295
((AtomContainerSet) geomParamValue).atomContainers().forEach(i -> inMols.add(i));
296296
} else if (geomParamValue instanceof IAtomContainer) {
297297
inMols.add((IAtomContainer) geomParamValue);
298+
} else if (geomParamValue == null) {
299+
throw new IllegalArgumentException("Parameter '" + ChemSoftConstants.PARGEOM
300+
+ "' is expected to be an AtomContainerSet or IAtomContainer, "
301+
+ "but is null.");
298302
} else {
299303
throw new IllegalArgumentException("Parameter '" + ChemSoftConstants.PARGEOM
300304
+ "' is expected to be an AtomContainerSet or IAtomContainer, "

test/cli47.check

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ if ! grep -q -i "second attempt" "cli47_wdir/restart.densities" ; then not_passe
3333
if [ ! -f "cli47_wdir/Job_#0.1_1/cli47.out" ] ; then not_passed $LINENO ; fi
3434
if ! grep -q -i "The optimization did not converge but reached the maximum number" "cli47_wdir/Job_#0.1_1/cli47.out" ; then not_passed $LINENO ; fi
3535

36-
if [ -f cli47_wdir/Job_#0.1_1/restart.gbw ] ; then not_passed $LINENO ; fi # overwritten, so not archived
36+
if [ -f "cli47_wdir/Job_#0.1_1/restart.gbw" ] ; then not_passed $LINENO ; fi # overwritten, so not archived
3737

38-
if [ ! -f cli47_wdir/Job_#0.1_1/cli47.gbw ] ; then not_passed $LINENO ; fi
38+
if [ ! -f "cli47_wdir/Job_#0.1_1/cli47.gbw" ] ; then not_passed $LINENO ; fi
3939
if ! grep -q -i "this should remain" "cli47_wdir/Job_#0.1_1/cli47.gbw" ; then not_passed $LINENO ; fi
4040
if ! grep -q -i "second attempt" "cli47_wdir/Job_#0.1_1/cli47.gbw" ; then not_passed $LINENO ; fi
4141

42-
if [ -f cli47_wdir/Job_#0.1_1/restart.densities ] ; then not_passed $LINENO ; fi # overwritten, so not archived
42+
if [ -f "cli47_wdir/Job_#0.1_1/restart.densities" ] ; then not_passed $LINENO ; fi # overwritten, so not archived
4343

44-
if [ ! -f cli47_wdir/Job_#0.1_1/cli47.densities ] ; then not_passed $LINENO ; fi
44+
if [ ! -f "cli47_wdir/Job_#0.1_1/cli47.densities" ] ; then not_passed $LINENO ; fi
4545
if ! grep -q -i "this should remain" "cli47_wdir/Job_#0.1_1/cli47.densities" ; then not_passed $LINENO ; fi
4646
if ! grep -q -i "second attempt" "cli47_wdir/Job_#0.1_1/cli47.densities" ; then not_passed $LINENO ; fi
4747

test/cli47_KB/draft_geom_opt_run_out_of_cycles.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"jobEditTasks": [
2121
{
2222
"task": "SET_JOB_PARAMETER",
23-
"parameter": {"reference": "inputGeometries", "value": "getACCJobsData(#0,JOBOUTPUTDATA,LAST,GEOMETRIES,LAST)"}
23+
"parameter": {"reference": "inputGeometries", "value": "getACCJobsData(#0,GEOMETRIES,LAST)"}
2424
},
2525
{
2626
"task": "SET_KEYWORD",
@@ -65,12 +65,12 @@
6565
"pattern": "*.sdf"
6666
},
6767
{
68-
"type": "rename_copy_basename",
68+
"type": "rename_copy_basename_idx",
6969
"pattern": "BASENAME.gbw",
7070
"newName": "restart.gbw"
7171
},
7272
{
73-
"type": "rename_copy_basename",
73+
"type": "rename_copy_basename_idx",
7474
"pattern": "BASENAME.densities",
7575
"newName": "restart.densities"
7676
},

test/cli47_out_tmpl_0/cli47.out

Lines changed: 2265 additions & 2267 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)