Open mpperezp opened 2 years ago
@mpperezp I believe you are using an older version of AtChem2, can you please update to the latest version before doing modifications? Second, have a look at PR #432: in that pull request the code was modified to intriduce a new "constrainable" environment variable. You can use those modifications as a guideline. Hope this helps.
@mpperezp did you manage to resolve this?
Hi ! I've been trying to add a new variable to constrain. I'm looking into adding emissions as a constained file because a single value is not suitable for the tests I'm running as I nead weekly variability. On the one hand I thought about adding a new species (e.g EMICO), provide the constrains and parse the value into the desired species to be emitted like so:
% 1 : EMICO = CO ;
However, I don't think this is the best approach. The other option I could think of was to add the emission as an environmental constrain and use as:
% EMICO : CO = ;
To achieve this, I followed what is done for the BLHEIGHT trying to create a variable called EMICO, but I come across an error I can't debug, the model creates the mechanism.f90 file but fails to continue
Below the files I've modified (attached):
./build/mech_converter.py ./src/solverFunctions.f90 ./src/constraintFunctions.f90 ./src/inputFunctions.f90
I would appreciate any help you can provide, my knowledge in Fortran is very limited. Or if there is another way to add variable emissions. 4.Mod_code.zip