Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error #5

Open
asochan opened this issue Jan 11, 2022 · 3 comments
Open

Compilation error #5

asochan opened this issue Jan 11, 2022 · 3 comments

Comments

@asochan
Copy link

asochan commented Jan 11, 2022

I tried compiling Aerosolved on Ubuntu 20.04 with OpenFoam v2112, v2012, v1912 (older versions are not available using apt-get).
In every case, the problem is an error in the file: libraries/aerosolModels/functionObjects/sampleFlux/sampleFlux.C on line 152 - function or method "writeTime" is unknown. Is it possible to fix this error?

@f-lucci
Copy link
Member

f-lucci commented Jan 11, 2022

The current version of AeroSolved in GitHub is tested for v1906 About .

If later OF versions are required, for now, we suggest to try the edits of Mark Olesen Link.

thank you for Trying AeroSolved

@TBE-ThomasTian
Copy link

Hi,

this help for OF 2021+:
file: libraries/aerosolModels/functionObjects/sampleFlux/sampleFlux.C on line 152 :

bool Foam::functionObjects::sampleFlux::write()
{
if (Pstream::master())
{
forAll(names(), filei)
{
//writeTime(files(filei));
writeCurrentTime(files(filei)); <------ FIX
}
}

Bye
Tian

@asochan
Copy link
Author

asochan commented Jan 11, 2022

Hi,

this help for OF 2021+: file: libraries/aerosolModels/functionObjects/sampleFlux/sampleFlux.C on line 152 :

bool Foam::functionObjects::sampleFlux::write() { if (Pstream::master()) { forAll(names(), filei) { //writeTime(files(filei)); writeCurrentTime(files(filei)); <------ FIX } }

Bye Tian

Now compiles with OF 2012, but not with either OF2106 or OF2112.
But that's enough for me :)
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants