# \[SOLVED\] Computing the linear and nonlinear optical response

**URL:** <https://discourse.abinit.org/t/solved-computing-the-linear-and-nonlinear-optical-response/2989>\
**Category:** Other tools and postprocessing in ABINIT\
**Created:** [September 12, 2021, 3:26am UTC](https://discourse.abinit.org/t/solved-computing-the-linear-and-nonlinear-optical-response/2989 "2021-09-12T03:26:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lamed](https://discourse.abinit.org/user_avatar/discourse.abinit.org/lamed/32/126_2.png) [@Lamed](https://discourse.abinit.org/u/Lamed)\
**Post date:** [September 12, 2021, 3:26am UTC](https://discourse.abinit.org/t/solved-computing-the-linear-and-nonlinear-optical-response/2989/1 "2021-09-12T03:26:12Z")

</div>

Hello everyone,  
I am a newbie in abinit. At present, I am repeating the calculation of nonlinear optical properties in the reference tutorial ([Tutorial on optical properties - abinit](https://docs.abinit.org/tutorial/optic/)). I got a reasonable file ‘optic\_1o\_DS3\_WFK’ , ‘toptic\_1o\_DS4\_1WF7’ , ‘toptic\_1o\_DS5\_1WF8’ and ‘toptic\_1o\_DS6\_1WF9’ after executing “abinit toptic\_1.abi \> log 2\> err”, but I encountered an unreasonable error when executing “optic toptic\_2.abi \> log 2\> err &” as follows:  
 ![image](https://discourse.abinit.org/uploads/default/original/1X/4bc296bdfd8fa2879c5e4e27f514f148127881aa.png)  
The current abinit version is 9.4.2, I don’t know what this error means, could you help me？

---

<div class="post-metadata">

**Author:** ![Lamed](https://discourse.abinit.org/user_avatar/discourse.abinit.org/lamed/32/126_2.png) [@Lamed](https://discourse.abinit.org/u/Lamed)\
**Post date:** [September 12, 2021, 4:08am UTC](https://discourse.abinit.org/t/solved-computing-the-linear-and-nonlinear-optical-response/2989/2 "2021-09-12T04:08:16Z")

</div>

When I change to optic of Abinit 9.4.0, I can complete “optic toptic\_2.abi\> log 2\> err &” normally. Is this a bug in version 9.4.2?

---

<div class="post-metadata">

**Author:** ![Lamed](https://discourse.abinit.org/user_avatar/discourse.abinit.org/lamed/32/126_2.png) [@Lamed](https://discourse.abinit.org/u/Lamed)\
**Post date:** [September 12, 2021, 10:56am UTC](https://discourse.abinit.org/t/solved-computing-the-linear-and-nonlinear-optical-response/2989/3 "2021-09-12T10:56:43Z")

</div>

I then tested Abinit9.4.2 on another machine. The post-processing program of optic can complete the task normally. I think it may be because I made a mistake in compiling. I disturbed everyone. I am really sorry.
