# Positron Doppler calculation fails after SCF steps

**URL:** <https://discourse.abinit.org/t/positron-doppler-calculation-fails-after-scf-steps/2991>\
**Category:** Ground state\
**Created:** [September 15, 2021, 7:23am UTC](https://discourse.abinit.org/t/positron-doppler-calculation-fails-after-scf-steps/2991 "2021-09-15T07:23:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajaraman](https://discourse.abinit.org/user_avatar/discourse.abinit.org/rajaraman/32/132_2.png) [@rajaraman](https://discourse.abinit.org/u/rajaraman)\
**Post date:** [September 15, 2021, 7:23am UTC](https://discourse.abinit.org/t/positron-doppler-calculation-fails-after-scf-steps/2991/1 "2021-09-15T07:23:36Z")

</div>

Hai all  
Nice to work with latest v9.4.2.  
But I have problem for positron calculations with v9.4.2.

system is W super cell with 127 atoms + 1 vacancy.  
relaxation with positron and positron lifetime calculations are fine.  
But doppler calculation fails after completing both electron and positron SCFs  
please see attached log and input files

Mem: 132124428k total shared by 24cpus

ps: I am able to calculate doppler for 16 atoms super cell.  
currently trying with 8cpu run to see if failure is due to memory requirement

looking for some clues to move forward  
thanks  
-rajaraman

[W\_444\_1V\_unrelaxed\_db.abi](https://discourse.abinit.org/uploads/short-url/oH2Vsgrq1UsScXfWHlxrFGSFXXV.abi) (9.1 KB)

[W\_444\_1V\_unrelaxed\_db.log](https://discourse.abinit.org/uploads/short-url/fZV3Xz6rPb1MJ0MbkoxMzETRlQW.log) (496.0 KB)

---

<div class="post-metadata">

**Author:** ![bguster](https://discourse.abinit.org/letter_avatar_proxy/v4/letter/b/ac8455/32.png) [@bguster](https://discourse.abinit.org/u/bguster)\
**Post date:** [September 22, 2021, 2:00pm UTC](https://discourse.abinit.org/t/positron-doppler-calculation-fails-after-scf-steps/2991/2 "2021-09-22T14:00:18Z")

</div>

Hello Rajaraman,

Any updates on your memory tests?  
What happens if you set your stack limit to unlimited while maintaining your ~130GB of memory requested for the job, i.e. including this line in your job submission file:

ulimit -s unlimited

?

Best,  
Bogdan

---

<div class="post-metadata">

**Author:** ![rajaraman](https://discourse.abinit.org/user_avatar/discourse.abinit.org/rajaraman/32/132_2.png) [@rajaraman](https://discourse.abinit.org/u/rajaraman)\
**Post date:** [September 23, 2021, 6:38am UTC](https://discourse.abinit.org/t/positron-doppler-calculation-fails-after-scf-steps/2991/3 "2021-09-23T06:38:56Z")

</div>

Dear Bogdan,  
Thanks for your suggestion.  
I added ulimit line to the job script.

will get back with its outcome.

thanks  
-rajaraman

---

<div class="post-metadata">

**Author:** ![rajaraman](https://discourse.abinit.org/user_avatar/discourse.abinit.org/rajaraman/32/132_2.png) [@rajaraman](https://discourse.abinit.org/u/rajaraman)\
**Post date:** [September 27, 2021, 6:24am UTC](https://discourse.abinit.org/t/positron-doppler-calculation-fails-after-scf-steps/2991/4 "2021-09-27T06:24:38Z")

</div>

Dear Bogdan,

Thanks a lot for the suggestion to use  
ulimit -s unlimited

it worked.  
though 39 SCFs took about 9hrs, Doppler calculation took additional 67hrs!  
see attached log.

[db.log](https://discourse.abinit.org/uploads/short-url/i5JQHlltOXcVe8X2kQ89xvtWKUA.log) (918.5 KB)

There was another bottleneck.  
I needed optforces switch “on” for smooth switching from electronic SCFs to positron SCFs.  
optforces 1

without “optforce” job fails at the start of positron SCFs  
see failed job log.

[db-fail\_no\_optforce.log](https://discourse.abinit.org/uploads/short-url/mGZN1pRs07H6DDYQZWXFHMWjDoZ.log) (375.9 KB)

though it is ok as long as jobs complete, but the optforce is redundant when we do doppler calculations  
[Positron - abinit](https://docs.abinit.org/tutorial/positron/index.html) (tpositron\_5 or 6)

thanks  
-rajaraman

---

<div class="post-metadata">

**Author:** ![bguster](https://discourse.abinit.org/letter_avatar_proxy/v4/letter/b/ac8455/32.png) [@bguster](https://discourse.abinit.org/u/bguster)\
**Post date:** [September 27, 2021, 6:23pm UTC](https://discourse.abinit.org/t/positron-doppler-calculation-fails-after-scf-steps/2991/5 "2021-09-27T18:23:51Z")

</div>

Dear Rajaraman,

I am glad this solution worked fine for you.

I suspect it might still be a memory related problem, but I will have to ask someone well-versed in this aspect.

For the future, I might suggest to add -fbacktrace to your FLAGS when compiling ABINIT because at this stage I can’t reproduce your error.  
Please let me know of the outcome if you pursue this.

Best,  
Bogdan

---

<div class="post-metadata">

**Author:** ![rajaraman](https://discourse.abinit.org/user_avatar/discourse.abinit.org/rajaraman/32/132_2.png) [@rajaraman](https://discourse.abinit.org/u/rajaraman)\
**Post date:** [September 28, 2021, 11:58am UTC](https://discourse.abinit.org/t/positron-doppler-calculation-fails-after-scf-steps/2991/6 "2021-09-28T11:58:26Z")

</div>

Thank you Bogdan.

I am about to recompile as the output of the completed run showed only NAN.

I will include “backtrace” flag now.

I dont see any such switch to add -fbacktrace.

how to put it during compilation?

thanks  
-rajaraman
