You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fno/data_gen/data_gen_Kolmogorov2d.py
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,7 @@
7
7
8
8
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9
9
10
-
importos, sys
11
-
12
-
importdill
10
+
importos
13
11
14
12
importtorch
15
13
importtorch.fftasfft
@@ -20,11 +18,9 @@
20
18
fromtorch_cfd.finite_differencesimport*
21
19
fromtorch_cfd.forcingsimport*
22
20
23
-
fromtqdmimporttqdm
24
21
fromdata_utilsimport*
25
-
fromsolversimport*
26
22
27
-
importlogging
23
+
fromsolversimportget_trajectory_imex
28
24
29
25
fromfno.pipelineimportDATA_PATH, LOG_PATH
30
26
@@ -69,7 +65,7 @@ def main(args):
69
65
random_state=args.seed
70
66
peak_wavenumber=args.peak_wavenumber# 4
71
67
diam=args.diam# "2 * torch.pi" default
72
-
diam=eval(diam) ifisinstance(diam, str) elsediam#
68
+
diam=eval(diam) ifisinstance(diam, str) elsediam#
73
69
force_rerun=args.force_rerun
74
70
75
71
logger=logging.getLogger()
@@ -96,7 +92,7 @@ def main(args):
96
92
ifdata_existandnotforce_rerun:
97
93
logger.info(f"File {filename} exists with current data as follows:")
Copy file name to clipboardExpand all lines: fno/data_gen/data_gen_McWilliams2d.py
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,7 @@
7
7
8
8
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0 commit comments