OPTIC file for HSE calculation

Problems running VASP: crashes, internal errors, "wrong" results.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
jjhskang
Newbie
Newbie
Posts: 21
Joined: Sat Dec 30, 2006 2:25 am
License Nr.: jk35QGB7

OPTIC file for HSE calculation

#1 Post by jjhskang » Fri May 25, 2012 1:14 am

Hello,

When I do hybrid functional (HSE) calculations on a parallel machine, I need to set NPAR = #processors. But I also want to use the matrix elements from the OPTIC file which is written only when NPAR=1. How can I get the OPTIC file with hybrid functional calculations?

This is a question raised by many people which has been never answered. I have the same problem. Is there any one who can comment on this?

Thanks
Last edited by jjhskang on Fri May 25, 2012 1:14 am, edited 1 time in total.

admin
Administrator
Administrator
Posts: 2921
Joined: Tue Aug 03, 2004 8:18 am
License Nr.: 458

OPTIC file for HSE calculation

#2 Post by admin » Wed May 30, 2012 2:00 pm

1. Relax the system using multiple cores.
2. Repeat the last electronic step (NSW=0, ISTART=1) on one core (NPAR=1, LOPTICS=.TRUE.) )
Last edited by admin on Wed May 30, 2012 2:00 pm, edited 1 time in total.

jjhskang
Newbie
Newbie
Posts: 21
Joined: Sat Dec 30, 2006 2:25 am
License Nr.: jk35QGB7

OPTIC file for HSE calculation

#3 Post by jjhskang » Sat Jun 02, 2012 3:20 am

To head admin:

1. The second run (NSW=0, ISRAT=1, NPAR=1, LOPTICS = .TRUE.) does not work for HSE calculation. In fact, the HSE calculation can be run only when NPAR= # of processors. So your answer is not a way to solve the problem.

2. I modified main.F in such a way that
-----------------------------------------------------
! IF (NPAR ==1 .AND. LPAW) THEN
IF (LPAW) THEN
! offboard optics by Juergen Furthmueller
ALLOCATE(NABIJ(WDES%NB_TOT,WDES%NB_TOT))

CALL CALC_NABIJ(NABIJ,W,WDES,P,KPOINTS,GRID_SOFT,LATT_CUR, &
IO,INFO,T_INFO,COMM,IU0,55)
DEALLOCATE(NABIJ)
CALL STOP_TIMING("G",IO%IU6,'NABIJ')
ENDIF
-------------------------------------------------
NABIJ() ruitine can be called even when NPAR .ne. 1.

It runs.

3. For one-dimensional system in which peridicity is in the X-direction, I also changed NDIR in optics.F from 3 to 1. With these changes, I made a calculation for an 1D system. I find that NABIJ() array sometimes becomes very large (~10**25 !!).

This problem can be related to the accuracy of the calculation. Can you help me to solve this problem?

I guess that it has something to do with optics.F
Last edited by jjhskang on Sat Jun 02, 2012 3:20 am, edited 1 time in total.

jjhskang
Newbie
Newbie
Posts: 21
Joined: Sat Dec 30, 2006 2:25 am
License Nr.: jk35QGB7

OPTIC file for HSE calculation

#4 Post by jjhskang » Sat Jun 02, 2012 3:41 am

I mean that the change in 2 above makes the VASP to run even when NPAR != 1. However, some of NABIJ() array elements are almost infinitely large!! How can I solve this probelm?
Last edited by jjhskang on Sat Jun 02, 2012 3:41 am, edited 1 time in total.

jjhskang
Newbie
Newbie
Posts: 21
Joined: Sat Dec 30, 2006 2:25 am
License Nr.: jk35QGB7

OPTIC file for HSE calculation

#5 Post by jjhskang » Sun Jun 03, 2012 6:46 am

I find that the problem that NABIJ() has elements with very large values is caused by allowing NPAR!= 1 for HSE calculation. I mean that NPAR should be 1 if we want to have correct values of NABIJ().
However, HSE calculation does not run if NPAR=1. So

what can I do ?
Last edited by jjhskang on Sun Jun 03, 2012 6:46 am, edited 1 time in total.

jjhskang
Newbie
Newbie
Posts: 21
Joined: Sat Dec 30, 2006 2:25 am
License Nr.: jk35QGB7

OPTIC file for HSE calculation

#6 Post by jjhskang » Sun Jun 03, 2012 9:15 am

TO Admin:

Using one processor and NPAR = 1 causes memory allocation problem in wave.f in my problem and stops running.
Last edited by jjhskang on Sun Jun 03, 2012 9:15 am, edited 1 time in total.

jjhskang
Newbie
Newbie
Posts: 21
Joined: Sat Dec 30, 2006 2:25 am
License Nr.: jk35QGB7

OPTIC file for HSE calculation

#7 Post by jjhskang » Mon Jun 04, 2012 9:09 am

To Admin:

So my point is that if it is possible to get a code which runs for HSE calculation with NPAR != 1, while generating OPTIC file too. At the monent, the correct OPTIC file is generated only when NPAR = 1.
Last edited by jjhskang on Mon Jun 04, 2012 9:09 am, edited 1 time in total.

admin
Administrator
Administrator
Posts: 2921
Joined: Tue Aug 03, 2004 8:18 am
License Nr.: 458

OPTIC file for HSE calculation

#8 Post by admin » Mon Jun 04, 2012 9:47 am

The generation of OPTIC-file is tested in HSE calculation on one core, NPAR=1,Monkhorst (222) using vasp.5.2.9_mpi
Last edited by admin on Mon Jun 04, 2012 9:47 am, edited 1 time in total.

jjhskang
Newbie
Newbie
Posts: 21
Joined: Sat Dec 30, 2006 2:25 am
License Nr.: jk35QGB7

OPTIC file for HSE calculation

#9 Post by jjhskang » Fri Jun 08, 2012 4:41 am

To Admin:

It is too time-consuming to make the calculation for large systems with only one processor.
Last edited by jjhskang on Fri Jun 08, 2012 4:41 am, edited 1 time in total.

jjhskang
Newbie
Newbie
Posts: 21
Joined: Sat Dec 30, 2006 2:25 am
License Nr.: jk35QGB7

OPTIC file for HSE calculation

#10 Post by jjhskang » Fri Jun 08, 2012 4:45 am

So it is practicaly impossible to make a calculation for large systems. Therefore, it will be better if you can make it to generate OPTIC file with many CPUs.
Last edited by jjhskang on Fri Jun 08, 2012 4:45 am, edited 1 time in total.

jjhskang
Newbie
Newbie
Posts: 21
Joined: Sat Dec 30, 2006 2:25 am
License Nr.: jk35QGB7

OPTIC file for HSE calculation

#11 Post by jjhskang » Mon Jul 01, 2013 4:09 am

Is ther any solution to this problem recently??
Last edited by jjhskang on Mon Jul 01, 2013 4:09 am, edited 1 time in total.

Post Reply