Changeset View
Changeset View
Standalone View
Standalone View
intern/mantaflow/intern/strings/fluid_script.h
| /* SPDX-License-Identifier: GPL-2.0-or-later | /* SPDX-License-Identifier: GPL-2.0-or-later | ||||
| * Copyright 2016 Blender Foundation. All rights reserved. */ | * Copyright 2016 Blender Foundation. All rights reserved. */ | ||||
| /** \file | /** \file | ||||
| * \ingroup intern_mantaflow | * \ingroup intern_mantaflow | ||||
| */ | */ | ||||
| #include <string> | #include <string> | ||||
| ////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////// | ||||
| // LIBRARIES | // LIBRARIES | ||||
| ////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////// | ||||
| const std::string manta_import = | const std::string manta_import = | ||||
| "\ | "\ | ||||
| from manta import *\n\ | from manta import *\n\ | ||||
| from math import inf\n\ | |||||
| import os.path, shutil, math, sys, gc, multiprocessing, platform, time\n\ | import os.path, shutil, math, sys, gc, multiprocessing, platform, time\n\ | ||||
| \n\ | \n\ | ||||
| withMPBake = False # Bake files asynchronously\n\ | withMPBake = False # Bake files asynchronously\n\ | ||||
| withMPSave = False # Save files asynchronously\n\ | withMPSave = False # Save files asynchronously\n\ | ||||
| isWindows = platform.system() != 'Darwin' and platform.system() != 'Linux'\n\ | isWindows = platform.system() != 'Darwin' and platform.system() != 'Linux'\n\ | ||||
| # TODO(sebbas): Use this to simulate Windows multiprocessing (has default mode spawn)\n\ | # TODO(sebbas): Use this to simulate Windows multiprocessing (has default mode spawn)\n\ | ||||
| #try:\n\ | #try:\n\ | ||||
| # multiprocessing.set_start_method('spawn')\n\ | # multiprocessing.set_start_method('spawn')\n\ | ||||
| ▲ Show 20 Lines • Show All 802 Lines • Show Last 20 Lines | |||||