uw-cmg / MAST

MAterials Simulation Toolkit for use with pymatgen
17 stars 8 forks source link

If a looped input file is called outside of its directory, loops get created in the directory but then are not found #388

Open cmgtam opened 10 years ago

cmgtam commented 10 years ago

The issue is that when IndepLoopInputParser creates the createdfiles list, it only has the loop file names, like "loop_01_xxx.inp" Then, when mastinput.py goes through and sets up the recipe, it only gives the input file name. However, it should also prepend the directory of the original input file. mast -i ~/some_path/inputfilewithloops.inp creates the list: loop_01_inputfilewithloops.inp loop_02_inputfilewithloops.inp etc. Then mastinput.py, when it calls set up recipe, should give set_up_recipe not just "loop_01_inputfilewithloops.inp" but "~/some_path/loop_01_inputfilewithloops.inp"