16
General Questions and Answers / Re: error in mpiexec.hydra
« on: September 15, 2023, 08:32 »
Remove the '-localonly' option from the command, it was only available for older versions of Intel MPI.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
mpiexec -np 1 atkpython < test.py >> test.out
mpiexec -np 1 atkpython test.py >> test.out
module load intel-mpi
source /path/to/intel/oneapi/mpi/latest/env/mpivars.sh
mpirun --version
export I_MPI_DEBUG=5
Dear Filipr,
What to do when we have a gas adsorbed on a periodic system?
How shall we perform the HOMO-LUMO calculation in such case?
If I understand what you mean by charge density difference, you need to split it up in three different calculations: 1) Full system, e.g. surface + molecule 2) only surface 3) only molecule. It is important that you use the same unit cell and grid sampling for each calculation, even the small molecule. To set a specific grid sampling you can use: density_mesh_cutoff=GridSampling(Na, Nb, Nc). If you do the calculation of the full system you can read off the grid sampling used in the log output or using e.g. density.shape() in Python.
Calculate the electron density for each system, then you can calculate the difference as:Codedensity_full = nlread('calculation_surface+molecule.hdf5', ElectronDensity)[0]
density_surface = nlread('calculation_surface.hdf5', ElectronDensity)[0]
density_molecule = nlread('calculation_molecule.hdf5', ElectronDensity)[0]
charge_difference_density = density_full - density_surface - density_molecule
nlsave('charge_difference_density.hdf5', charge_difference_density)
The charge_difference_density variable will contain a generic GridValues object that can be opened and viewed in NanoLab.
export I_MPI_DEBUG=5
/path/to/quantumatk/bin/atkpython your_script.py
export I_MPI_DEBUG=5
/path/to/quantumatk/libexec/mpiexec.hydra -n <#PROCS> /path/to/quantumatk/bin/atkpython your_script.py