Dear Dibyendu,
the easiest (to me) is just to transpose your .csv data and paste the values as arrays into your molpro input, e.g.,
r13 = [4.184 3.512 ....]
r24 = [3.928 4.856 ...]
etc.
then do a single do loop indexed by the number of array elements in, e.g., r13. Make sure in your geometry block you specify array elements, e.g., r13(i), assuming "i" is your do loop index.
regards, -Kirk
--
You received this message because you are subscribed to the Google Groups "molpro-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
molpro-user...@googlegroups.com.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/molpro-user/e17cae32-c173-4ca4-8201-4bd4c643c98bn%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/molpro-user/CAHT%2BcqFbMi%2B8CpJhoV9LVr%3DGw%2BQY5F5FnqgxM0UVSjG7_-L2cg%40mail.gmail.com.
Dear Dibyendu,
Dr Lievin's post is certainly the most elegant way to accomplish what you need to do. In regard to why your input only calculates the first point is because you've incorrectly specified the beginning of your do loop. The loop can only run over the length of one array (which is ok since your arrays are all the same length). Hence just use:
do i=1,#r13
you could also avoid pasting the output from Jacky's program into your input by instead using an "include" statement before your do loop begins in order to insert an external file containing your array definitions.
regards,
-Kirk
From: Dibyandu Sardar <chem.dibya...@gmail.com>
Date: Tuesday, August 17, 2021 at 9:21 PM
To: "Peterson, Kirk" <kipe...@wsu.edu>
Subject: Re: [molpro-user] Importing data set problem for calculating HF energies
Respected Kirk
I have run the molpro code for two set of data. I have made a single do loop that you have mentioned. But, I found that molpro calculates energy only for the first set of data. However, molpro does not calculate energy for 2nd set of data and shows energy zero. I could not understand the error. Why does molpro not calculate data for the second set of parameters r13, r24, R, theta1, theta2, phi? Probably, there may be an error in the loop or anything else !
Here, I am sharing my input file, output file and data file. If you see the data file will find that the energy become zero for second set of data in all cases.
Please see and help us to overcome the problems.
Dibyendu
--
Dibyendu
Hi,
I think you need to spend some time with the molpro manual. The code that Dr. Lievin shared was an external Fortran code, not a snippet of molpro input. For instance there is no dimension statement in a molpro input. Plus look up how the include statement works in the manual. I think you have all the pieces and advice you need at this point, you just have to read up a bit and implement accordingly.
regards, -Kirk
From: Dibyandu Sardar <chem.dibya...@gmail.com>
Date: Wednesday, August 18, 2021 at 8:18 AM
To: "Peterson, Kirk" <kipe...@wsu.edu>, "guitar...@gmail.com" <guitar...@gmail.com>
Subject: Re: [molpro-user] Importing data set problem for calculating HF energies
Respected Kirk
Respected Lievin
I have tried to make a final code incorporating the Lievin programme with the original molpro code and I have also mentioned the "include" statement as mentioned by Kirk before defining the do loop of read statement from an external file.
I am afraid whether this code will run or not. Besides, in this code we have not mentioned the external file name for reading.
Therefore, it is my kind request to both of you, if you kindly go through my attached code and mention the errors if present, I will be thankful to you.
regards
--
Dibyendu