Skip to content

socket mode get stucked without any vasp output #57

@GengSS

Description

@GengSS

Hello,

I am trying to use the socket mode to run vaspinteractive calculator,
Here is my input python script:

import sys
from ase.optimize import BFGS
from ase.io.trajectory import Trajectory
from ase.io import read,write
import os
from vasp_interactive import VaspInteractive
from ase.calculators.socketio import SocketIOCalculator

ncpus = os.environ['NUMBER_OF_CPUS']
parameters = dict(istart=0, icharg=2, encut=400, ispin=2, ediff=1.0e-5, nelm=120, nelmin=4, xc='pbe',
          kpts=(2,2,1), gamma=True, prec="N", algo="N",ismear=0, sigma=0.1,
          npar=8,lreal="Auto",lcharg=False,lwave=False,iwavpr=11, directory='calculator',
          ldau_luj={'Ti': {'L': 2, 'U': 4.5, 'J': 0}},
          command="mpirun -np {} vasp_std".format(ncpus))

atoms=read(sys.argv[1])
atoms.set_pbc(True)
job_id = os.environ['SLURM_JOB_ID']
vpi = VaspInteractive(**parameters)

with SocketIOCalculator(vpi, unixsocket='vasp_jobid_{}'.format(job_id)) as calc:
    atoms.set_calculator(calc)
    trajectory = Trajectory(traj, mode='a', atoms=atoms, master=True)
    dyn = BFGS(atoms, logfile=log, trajectory=trajectory)
    dyn.run(fmax=0.03)
    write("optimized.traj",atoms)

The job is not killed by the queue system, however, I don't see any output files generated by VASP (such as OUTCAR, OSZICAR etc).
In the directory 'calculator', I can only find those files,
ase-sort.dat INCAR KPOINTS POSCAR POTCAR socket-client.log
and socket-client.log is empty.

Is there anything wrong with my input?
BTW, I am using vasp6.3.2 without the patches,

Best,
Geng

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions