Message Boards

RE: I need help in making dll file

Arjen Markus, modified 6 Years ago.

RE: I need help in making dll file

Jedi Knight Posts: 219 Join Date: 1/26/11 Recent Posts
The .0 file (dot-zero) file is merely the state information on what you selected in terms of substances and processes. It plays no direct role when adding new substances and processes to the processes library.

When you want to add a new substance - I guess with its own set of processes, otherwise you would simply have a new conservative substance and there is no need for Open-PLCT - you define what goes in and what comes out for each new process associated with such a substance. That information is stored in the processes library - the proc_def.dat and proc_def.def files.

The other step is that you fill in the template subroutine that Open-PLCT creates for you with the relevant code that actually implements the new process. This is in a Fortran source file. Once that is done, you need to compile this source file, and possibly others for other processes, and link it into a DLL. The procedure is described in section 4.7 of the manual but you can also refer to section 4.8.1 - that contains the steps in an almost fully automatic way. The thing that is left for you to do is: add the source files to the Visual Studio project and build it.
Fatemeh GholamiMahyari, modified 6 Years ago.

RE: I need help in making dll file

Youngling Posts: 23 Join Date: 4/8/16 Recent Posts
Dear Arjen

Thanks for your respond. Actually I want to define early diatom which has exact process as diatom. I just want to change the dependency factor to the temperature for early diatom. I am not sure how should i do it to have early diatom in which grows mostly in the spring and other diatom which mostly grow in the summer. My first problem is defining Early diatom with exact process like freshwater diatom which is already in the library. Do you think I can add early diatom without need to open pcl?
If you have any idea how can I change just one of my algae dependency to the temp? Do you think reducing the energy type of this type of alga is the answer? or I should change some coefficient in the process?

Thanks
Fateme
Arjen Markus, modified 6 Years ago.

RE: I need help in making dll file

Jedi Knight Posts: 219 Join Date: 1/26/11 Recent Posts
Oh, well, that is a very different question and one for which you do not need to expand the processes library in any way. I will have to forward this to my colleagues who are more knowledgeable about algal species and their properties, but it should be doable with the right properties set.
Fatemeh GholamiMahyari, modified 6 Years ago.

RE: I need help in making dll file

Youngling Posts: 23 Join Date: 4/8/16 Recent Posts
Thanks a lot Arjen, You have been helping me so much.