Skip to content
Snippets Groups Projects
Commit fdb36e71 authored by JakobDeutloff's avatar JakobDeutloff
Browse files

directory setting in build_config scripts added

parent bfdc1bc5
No related branches found
No related tags found
No related merge requests found
import json
from func_bound_values import *
import os
# set wd to build_config_files folder
wd = os.getcwd()
# check if already in correct wd
if wd[-18:] == 'build_config_files':
pass
# if not, change to build_config_files
else:
path = wd + '/Python_files/Code/build_config_files'
os.chdir(path)
# set constants
rho_l = 1028
......
import json
from func_bound_values import *
import os
# set wd to build_config_files folder
wd = os.getcwd()
# check if already in correct wd
if wd[-18:] == 'build_config_files':
pass
# if not, change to build_config_files
else:
path = wd + '/Python_files/Code/build_config_files'
os.chdir(path)
# set constants
rho_l = 1028
......
import json
from func_bound_values import *
import os
# set wd to build_config_files folder
wd = os.getcwd()
# check if already in correct wd
if wd[-18:] == 'build_config_files':
pass
# if not, change to build_config_files
else:
path = wd + '/Python_files/Code/build_config_files'
os.chdir(path)
# set constants
rho_l = 1028
......
import json
from func_bound_values import *
import os
# set wd to build_config_files folder
wd = os.getcwd()
# check if already in correct wd
if wd[-18:] == 'build_config_files':
pass
# if not, change to build_config_files
else:
path = wd + '/Python_files/Code/build_config_files'
os.chdir(path)
# set constants
......
import json
from func_bound_values import *
import os
# set wd to build_config_files folder
wd = os.getcwd()
# check if already in correct wd
if wd[-18:] == 'build_config_files':
pass
# if not, change to build_config_files
else:
path = wd + '/Python_files/Code/build_config_files'
os.chdir(path)
# set constants
rho_l = 1028
......@@ -61,7 +72,7 @@ config['harmonic_flag'] = 2
config['prescribe_flag'] = 1
config['salt_flag'] = 1
# ________________________bottom setting______________________
config['turb_flag'] = 1
config['turb_flag'] = 2 # was on two in 203
config['bottom_flag'] = 1
config['tank_flag'] = 1
# ________________________snow______________________
......
import json
from func_bound_values import *
import os
# set wd to build_config_files folder
wd = os.getcwd()
# check if already in correct wd
if wd[-18:] == 'build_config_files':
pass
# if not, change to build_config_files
else:
path = wd + '/Python_files/Code/build_config_files'
os.chdir(path)
# set constants
rho_l = 1028
......
import json
from func_bound_values import *
import os
# set wd to build_config_files folder
wd = os.getcwd()
# check if already in correct wd
if wd[-18:] == 'build_config_files':
pass
# if not, change to build_config_files
else:
path = wd + '/Python_files/Code/build_config_files'
os.chdir(path)
# set constants
......@@ -50,10 +61,10 @@ config['N_middle'] = config['Nlayer'] - config['N_top'] - config['N_bottom']
# **********************************************************************************************************************
# ________________________top heat flux____________
config['boundflux_flag'] = 2
config['albedo_flag'] = 1
config['albedo_flag'] = 2
# ________________________brine_dynamics____________
config['grav_heat_flag'] = 1 # was set to 2 in testcase 203!
config['flush_heat_flag'] = 2
config['flush_heat_flag'] = 1
config['flood_flag'] = 2
config['flush_flag'] = 5
config['grav_flag'] = 2
......
{
"dt": 20,
"dt": 20.0,
"time": 0.0,
"time_out": 86400,
"time_total": 55468800,
"time_out": 86400.0,
"time_total": 55468800.0,
"timestep_data": 60,
"length_input": 924481,
"length_input": 924481.0,
"thick_0": 0.02,
"Nlayer": 80,
"N_active": 1,
......@@ -12,9 +12,9 @@
"N_bottom": 20,
"N_middle": 40,
"boundflux_flag": 2,
"albedo_flag": 1,
"albedo_flag": 2,
"grav_heat_flag": 1,
"flush_heat_flag": 2,
"flush_heat_flag": 1,
"flood_flag": 2,
"flush_flag": 5,
"grav_flag": 2,
......@@ -35,11 +35,11 @@
"tank_depth": 0,
"alpha_flux_stable": 0,
"alpha_flux_instable": 0,
"N_bgc": 0,
"bgc_bottom_1": 0,
"bgc_bottom_2": 0,
"N_bgc": 2,
"bgc_bottom_1": 400,
"bgc_bottom_2": 500,
"thick_1": 0.02,
"m_1": 20.56,
"S_abs_1": 699.04,
"H_abs_1": 0
"H_abs_1": -125827.19999999998
}
\ No newline at end of file
Mosaic_run_1
\ No newline at end of file
Testcase_MOSAiC
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment