Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenMolcas: WorkDir/OutputDir #11

Closed
MaxParadiz opened this issue Mar 23, 2020 · 0 comments
Closed

OpenMolcas: WorkDir/OutputDir #11

MaxParadiz opened this issue Mar 23, 2020 · 0 comments

Comments

@MaxParadiz
Copy link

While attempting the test jobs with OpenMolcas/18.04, the MOLCAS calculations would abruptly stop. The issue was that script moves into the 'WorkDir' to run pymolcas, and the default is to set the submit directory as the output dir ('$CurrDir' or '$OutputDir'). At least in my compiled version of Molcas (18.04, python 3.6), this will cause Molcas to crash. It at the same time as python encounters a "shutil.SameFileError" when trying to copy the xmldump.

A simple fix for me was to change the 'MOLCAS_OUTPUT' environment variable.
This can be done conveniently from within SHARC_MOLCAS.py:

def runMOLCAS(WORKDIR,MOLCAS,ncpu,strip=False):                                                                                                                          
    prevdir=os.getcwd()                                                                                                                                                  
    os.chdir(WORKDIR)                                                                                                                                                    
    os.environ['WorkDir']= WORKDIR                                          
######### Added this line ########################                                                                          
    os.environ['MOLCAS_OUTPUT']= WORKDIR+"/output"        
##############################################
    os.environ['MOLCAS_NPROCS']=str(ncpu)                                                                                                                                

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant