Skip to content
Snippets Groups Projects
Commit 40e4bd64 authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Fixing record length for CHIMERE adjoint; adapting tests to run CHIMERE on gitlab

parent 6cc5b341
No related branches found
No related tags found
1 merge request!28Fix issue with global domains and find_gridcells; speed up regrid for...
......@@ -119,7 +119,7 @@ pages:
# Run the tests
tests:
stage: test
image: pycif/pycif-ci:0.2
image: pycif/pycif-debug:0.1
before_script:
- apt-get update
- pip freeze
......@@ -136,8 +136,8 @@ tests:
- reports/pytest*.html
- reports/coverage/
- coverage/.current_coverage
only:
- devel
except:
- LSCE
# Check the code format using flake8
# code_format:
......
......@@ -25,7 +25,7 @@ subroutine awrite_concs_hour(iop, idout)
write(idoutstr, '(i2.2)')idout
fnconc = 'TMPconchour' // idoutstr
recordlen = 2 * nspectot * (nverti * nmerid * nzonal + (nverti + 1) * (nmerid + 6) * (nzonal + 6))
call opfi(ifnconch, fnconc, 'd', 'n', recordlen)
call opfi(ifnconch, fnconc, 'd', 'n', 8 * recordlen)
endif
! direct print
......
......@@ -28,7 +28,7 @@ subroutine awrite_concs_phys(iop, idout, moreid)
write(moreidstr, '(i5.5)')moreid
fnconc = 'TMPconcphys' // idoutstr // '_' // moreidstr
recordlen = 2 * nspectot * (nverti * nmerid * nzonal + (nverti + 1) * (nmerid + 6) * (nzonal + 6))
call opfi(ifnconcp, fnconc, 'd', 'n', recordlen)
call opfi(ifnconcp, fnconc, 'd', 'n', 8 * recordlen)
endif
! direct print
......@@ -45,7 +45,7 @@ subroutine awrite_concs_phys(iop, idout, moreid)
write(moreidstr, '(i5.5)')moreid
fnconc = 'TMPconcphys' // idoutstr // '_' // moreidstr
recordlen = 2 * nspectot * (nverti * nmerid * nzonal + (nverti + 1) * (nmerid + 6) * (nzonal + 6))
call opfi(ifnconcp, fnconc, 'd', 'n', recordlen)
call opfi(ifnconcp, fnconc, 'd', 'n', 8 * recordlen)
endif
! adjoint read: loop to ensure to read the right table
......
......@@ -14,10 +14,10 @@ RUN cd /tmp \
&& ./configure --prefix=${NCDIR} --disable-netcdf-4 \
&& make install;
COPY . /tmp/CIF
COPY ACAD_TEST /tmp/CIF
RUN cd /tmp/CIF/ \
&& python setup.py install
RUN cd /tmp/CIF/config_files/tuto_chimere/ \
&& python -m pycif config_chimere_fwd_academic_onespec.yml;
#RUN cd /tmp/CIF/ \
# && python setup.py install
#
#RUN cd /tmp/CIF/config_files/tuto_chimere/ \
# && python -m pycif config_chimere_fwd_academic_onespec.yml;
......@@ -12,8 +12,8 @@ def ref_chimere(tmpdir):
"""
current_dir = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
root_dir = os.path.abspath(os.path.join(current_dir, "../../.."))
data_dir = "${PYCIF_DATATEST}/CHIMERE/"
input_dir = "{}/ACADOK/3hour/".format(data_dir)
data_dir = "${PYCIF_DATATEST}/"
input_dir = "{}/ACADOK/".format(data_dir)
tmpdir_str = tmpdir.strpath
......@@ -31,7 +31,7 @@ def ref_chimere(tmpdir):
"autorestart": True,
},
"platform": {
"plugin": {"name": "LSCE", "version": "obelix"},
"plugin": {"name": "docker", "version": "cif"},
"cores": 10,
"queue": "mediump"
},
......@@ -47,11 +47,12 @@ def ref_chimere(tmpdir):
"direxec": os.path.join(
root_dir, "model_sources/chimereGES/"
),
"auto-compile": True,
"periods": "3H",
"nphour_ref": 6,
"ichemstep": 1,
"ideepconv": 0,
"nzdoms": 3,
"nzdoms": 1,
"nmdoms": 1,
"nivout": 17,
"nlevemis": 17,
......
......@@ -9,8 +9,8 @@ def setup_melchior(ref_chimere):
(tmp_dir, config, marker) = ref_chimere
# Data directory
data_dir = "${PYCIF_DATATEST}/CHIMERE/"
input_dir = "{}/ACADOK/3hour/".format(data_dir)
data_dir = "${PYCIF_DATATEST}/"
input_dir = "{}/ACADOK/".format(data_dir)
# Update parameters
config["chemistry"]["schemeid"] = "univ.melchior2"
......
......@@ -11,6 +11,7 @@ from pycif.utils.datastores.dump import read_datastore
@pytest.mark.chimere
@pytest.mark.short
@pytest.mark.long
@pytest.mark.test_in_ci
def test_integration_fwd(pytestconfig, chimere_config_fwd):
"""
Integration test that runs the chimere_forward model.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment