Page 1 of 1

calling equations module in quintessence file

Posted: August 20 2021
by Jiwon Park
Dear all,

Is there a way to call variables from the file equations.f90 in DarkEnergyQuintessence.f90? I want to use built-in functions for quintessence rather than writing codes from the first step. As the quintessence file is first compiled before equations.f90, when I try to use the module in DarkEnergyQuintessence.f90,

Code: Select all

    use equations, only : grhoc_t
it gives the following error:

Code: Select all

Fatal Error: Cannot open module file ‘equations.mod’ for reading at (1): No such file or directory

Re: calling equations module in quintessence file

Posted: August 21 2021
by Antony Lewis
You can't have circular module dependencies. The idea is to derive a new class from one of the exiting ones, making the changes you want. Whether that will work depends on whether the current methods are sufficient for the changes you want to make, otherwise modifications may be needed.