Welcome, Guest
Username: Password: Remember me

TOPIC: Compile version v7p3r0 for TelApy

Compile version v7p3r0 for TelApy 6 years 9 months ago #28807

  • shenh
  • shenh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 148
  • Thank you received: 37
I am trying to compile the latest version in windows 10 so I can use telapy api codes to control telemac runs. The example configuration on the website only applies to Linux OS. Has anyone successfully compiled it in windows 10 (or other windows version)? I am using the attached config file by mimicking the Linux edits. However, this edit does not work.

Should the compilation generate .dll inside folder bin?

Thanks,

Hailiang

File Attachment:

File Name: systel-mpi.cfg
File Size: 2 KB
The administrator has disabled public write access.

Compile version v7p3r0 for TelApy 6 years 9 months ago #28810

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
You need to add this line in your configuration file:
options: static api

Also know normally you need to compile the libraries in dynamic mode instead of static.
If you compile in static TelApy will still work but you wont be able to have a user fortran.

The api libraries should end up in builds/<your-config>/wrap_api/lib

Hope it helps
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Compile version v7p3r0 for TelApy 6 years 9 months ago #28813

  • shenh
  • shenh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 148
  • Thank you received: 37
Thank you. The compilation does not work by adding line option: static api. My error message is attached.

Also, I will have user fortran so I guess I have to use dynamic compilation not static compilation. Please note my goal is to use telemac as api so it can be used by TelApy or other programming languages (eg C# or C). Could you please advice how such a dynamic compilation can be done?

Thanks,

Hailiang
The administrator has disabled public write access.

Compile version v7p3r0 for TelApy 6 years 9 months ago #28829

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
You can find information for dynamic compilation for linux below:

wiki.opentelemac.org/doku.php?id=install...or_telapy_python_api

It is the same for Windows.
However know that so far TelApy in dynamic as not been tested on Windows.
So i cannot assure that it will work.
This is something we are going to look at this year.

If you really need it I would suggest using Win 10 Linux environment. If you are not already.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: shenh

Compile version v7p3r0 for TelApy 6 years 9 months ago #28842

  • shenh
  • shenh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 148
  • Thank you received: 37
Thank you yugi! Our goal is to integrate telemac with another 1D model (SWMM, www.epa.gov/water-research/storm-water-management-model-swmm). SWMM is developed by US EPA and is also very well written but in C. So it seems for now I am stuck trying to compile each system to dll and glue both systems with python. It is easy to compile SWMM to dll. We prefer the programs in windows OS. I will keep trying the compilation with your Linux link.

Another way maybe calling the SWMM dll from telemac2d. But I am not sure whether that will break the parallel scheme of telemac modules. I will eventually also need to model sediment transport.

Is it possible to compile both systems into one single executable? We will develop an interface file (either in C or Fortran) to exchange data between the two systems.

Once the api for windows OS is done this year, will it also support other modules?

Again thank you very much for your insight,

Hailiang
The administrator has disabled public write access.

Compile version v7p3r0 for TelApy 6 years 9 months ago #28843

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Yes in the next release all the modules will be available through the api.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.