Coder Social home page Coder Social logo

Comments (7)

sundmanbo avatar sundmanbo commented on June 14, 2024

Hi Teslos

You are still working with OC, I have not seen you updated much of your iso-C interface for OC.
As a matter of fact I have updated one of the examples on TQ4lib and I think I managed to eliminate both getkey and this "tinyfile_dialog" routines.
I am a bit too old to bother with POSIX or not, in fact I thought I am using MinGW but I am not really sure from where I downloaded by last gfortran version. To me the website for MinGW seemed quite dead whereas there is some more recent MSYS2 which seems to be a replacement but I want to change as little as possible. But I would appreciate help for the C connection and possibly also with Python although that seems to quite far away. This f2py converter is evidently only for F77 code.

Best wishes

Bosse

from opencalphad.

wallytutor avatar wallytutor commented on June 14, 2024

from opencalphad.

sundmanbo avatar sundmanbo commented on June 14, 2024

I am not very familiar with anything else than Fortran and I try to ensure I can compile the new version of OC on WIndows, Linux and MacOS. I have collaborated interfacing OC with C or C++ for 2 commercial applications and if one could make a more general interface, also including Python, I would be happy to collaborate, mainly by avoiding creating problems with my Fortran code. I do not think I ca contribute discussing POSIX or related issues.
For the moment I am mainly working on the code for step/map for interactive use, the OCASI/TQ interface has not gained much attention. I am also collaborating with someone developing a GUI (by creating OC macro files and writing python code) but again my main responsibility is not to mess up things so I prefer to stay with Fortran. But the getkey and tinyfile_dialogs were necessary for the interactive use of the Fortran code. For the use of OCASI/TQ they can be eliminated.

from opencalphad.

sundmanbo avatar sundmanbo commented on June 14, 2024

I am retired and work on OC on my personal PC at home so I have very little chance to test installing OC on various OS or configurations. Anyone are welcome to provide improved Makefiles/installment procedures/scripts. Such things are outside my knowledge, I want to concentrate on the thermodynamics.

from opencalphad.

sundmanbo avatar sundmanbo commented on June 14, 2024

Hi Teslos

I am sorry I am a bit slow but now I wonder why you are using getkey.c when you are running on Windows? Normally you should not compile and link that routine on Windows. I added it in order to have command line editing on Linux and it is only compiled if you use the Makefile. On WIndows I recommend using my homemade "linkmake" or "linkpara" routines to compile and link OC and they do not include getkey.c.

Can you explain why you want to use getkey.c? There is probably no problem for me to change to use the getch() you propose, is that normally available on linux systems?

Best wishes

Bosse

from opencalphad.

sundmanbo avatar sundmanbo commented on June 14, 2024

Hi Teslos

Using the Makefile on WIndows you can remove compiling getkey.c altogether and
the -Dlixed option when compiling metlib4.F90

Best wishes

Bosse

from opencalphad.

sundmanbo avatar sundmanbo commented on June 14, 2024

As I have no responses I close this

from opencalphad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.