Closed quenchlemon closed 2 years ago
It looks to me like PyTOUGH is not able to detect the simulator type of the date file, and is probably assuming it is TOUGH2 rather than AUTOUGH2. The command to run TOUGH2 is quite different from the one used to run AUTOUGH2, and it is probably using the wrong one.
When you set up your input file, do you have something in there to set the simulator type?
You may need something like dat.simulator = 'AUTOUGH2.2EW'
(if for example you were wanting to use the pure water (EW) EOS). This will set the 'SIMUL' block in the AUTOUGH2 input data file. I suspect your input data file at the moment does not have a SIMUL block.
(Note that when you use the 'simulator' parameter in the t2data run() method, that is just telling it the name of the executable, not the simulator type.)
BTW, it looks like you are running AUTOUGH2 version 1.0, which is extremely old (1997). It might work ok for a simple model, but for anything serious you would be better off using a more recent version.
Dear Aroucher,
Thank you for responding. Prior to your suggested solution, I only referred the simulator option to the executable since all of the EOS is combined into a single programme for AUTOUGH2. Using the examples as a template, I did not notice any lines of the code to include the simulator type.
When I added the dat.simulator = 'AUTOUGH2.2EW'
, the code begins to generate a file named model_AUTOUGH2_2.in. The contents of the file is seen below. Additionally, a blank listing file was generated.
When I used dat.simulator='AUT2.2EW'
, an exception error is generated saying that The system cannot find the file; this, I assume that the line is finding the location of the executable AUTOUGH2 file.
On a side note, it appears that AUTOUGH2 is not compatible with AMD Ryzen processors. Is this resolved in the updated versions?
Thank you.
Hi Jonathan,
Could you drop me an email address? I can send you a copy of the newer AUTOUGH2, which I think would run on AMD CPUs.
Regards,
On Wed, 6 Oct 2021 at 18:26, Jonathan Poh @.***> wrote:
Dear Aroucher,
Thank you for responding. Prior to your suggested solution, I only referred the simulator option to the executable since all of the EOS is combined into a single programme for AUTOUGH2. Using the examples as a template, I did not notice any lines of the code to include the simulator type.
When I added the dat.simulator = 'AUTOUGH2.2EW', the code begins to generate a file named model_AUTOUGH2_2.in. The contents of the file is seen below. Additionally, a blank listing file was generated.
[image: notepad++_UUL6x71xTz] https://user-images.githubusercontent.com/5679441/136144326-efe8b0a4-1c3b-4c8e-b35d-b12b90db2d2d.png
When I used dat.simulator='AUT2.2EW', an exception error is generated saying that The system cannot find the file; this, I assume that the line is finding the location of the executable AUTOUGH2 file.
On a side note, it appears that AUTOUGH2 is not compatible with AMD Ryzen processors. Is this resolved in the updated versions?
Thank you.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/acroucher/PyTOUGH/issues/29#issuecomment-935487911, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJB4YVLVZFG6HKZNGBYGBTUFPMWPANCNFSM5FK5JPQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Thank you Angus for responding. I have sent you and Adrian an email to your current email address listed on GitHub.
Hi all,
After receiving the newer version of AUTOUGH2, I reran my codes and it managed to run. Listing file is populated and now I just need to work out a script to generate the required plots.
Thank you for your assistance. I would consider this issue closed.
Hi everyone and Acroucher,
I have just started using PyTOUGH to create some input files for AUTOUGH. In doing so, I began with the example files such as the Horizontal_1D_Model.py listed in the Wiki. However, the simulation did not run with the following errors. I am not sure how to proceed from here.
1) Severe fortran error with the descriptions
forrtl: severe (24): end-of-file during read, unit 5, file CONIN$ AUT2.exe 000000014019685F Unknown Unknown Unknown AUT2.exe 0000000140191F63 Unknown Unknown Unknown AUT2.exe 000000014015034F Unknown Unknown Unknown AUT2.exe 0000000140132938 Unknown Unknown Unknown AUT2.exe 0000000140131572 Unknown Unknown Unknown AUT2.exe 000000014010454D Unknown Unknown Unknown AUT2.exe 00000001400D69F6 MAIN__ 249 t2m.f AUT2.exe 0000000140199B8C Unknown Unknown Unknown AUT2.exe 000000014017F8EF Unknown Unknown Unknown KERNEL32.DLL 00007FFFA29E7034 Unknown Unknown Unknown ntdll.dll 00007FFFA3662651 Unknown Unknown Unknown
2) The listing file is unable to read the Input file name despite using the run method for the t2data object (see below)
If it helps, here is the environment I am currently using. Python 3.7.11 or 3.8.8 Numpy 1.20.1 Scipy 1.6.2 PyTOUGH 1.5.5
Thank you!