Skip to content
Snippets Groups Projects
Commit cbb5e56a authored by Paul Gierz's avatar Paul Gierz
Browse files

fix: shorter names

parent ca7b7397
No related branches found
No related tags found
No related merge requests found
### ProjectName ### ProjectName
global_mesh global_mesh
### ProjectPath ### ProjectPath
{{cookiecutter.project_path}}/FESOM2_Mesh_Generation_{{cookiecutter.mesh_name}}/mesh_CORE2_{{cookiecutter.mesh_name}}/ {{cookiecutter.project_path}}/FESOM2_MeshGen_{{cookiecutter.mesh_name}}/mesh_CORE2_{{cookiecutter.mesh_name}}/
### BathymetryName ### BathymetryName
global global
### BathymetryPath ### BathymetryPath
{{cookiecutter.project_path}}/FESOM2_Mesh_Generation_{{cookiecutter.mesh_name}}/mg/topo/ {{cookiecutter.project_path}}/FESOM2_MeshGen_{{cookiecutter.mesh_name}}/mg/topo/
### BathymetryDataSet ### BathymetryDataSet
{{cookiecutter.mesh_name}}_input_file_used_for_matlab_routine.nc {{cookiecutter.mesh_name}}_input_file_used_for_matlab_routine.nc
...@@ -761,22 +761,22 @@ void readtopo() ...@@ -761,22 +761,22 @@ void readtopo()
FILE *fp; FILE *fp;
int i, j, count; int i, j, count;
   
fp=fopen("{{cookiecutter.project_path}}/FESOM2_Mesh_Generation_{{cookiecutter.mesh_name}}/mg/topo/lon_{{cookiecutter.mesh_name}}.bin32","r"); fp=fopen("{{cookiecutter.project_path}}/FESOM2_MeshGen_{{cookiecutter.mesh_name}}/mg/topo/lon_{{cookiecutter.mesh_name}}.bin32","r");
count=fread(lon,sizeof(float),21601,fp); count=fread(lon,sizeof(float),21601,fp);
printf("%d %f %f\n",count,lon[0],lon[359]); printf("%d %f %f\n",count,lon[0],lon[359]);
fclose(fp); fclose(fp);
   
fp=fopen("{{cookiecutter.project_path}}/FESOM2_Mesh_Generation_{{cookiecutter.mesh_name}}/mg/topo/lat_{{cookiecutter.mesh_name}}.bin32","r"); fp=fopen("{{cookiecutter.project_path}}/FESOM2_MeshGen_{{cookiecutter.mesh_name}}/mg/topo/lat_{{cookiecutter.mesh_name}}.bin32","r");
count=fread(lat,sizeof(float),10801,fp); count=fread(lat,sizeof(float),10801,fp);
printf("%d %f %f\n",count,lat[0],lat[179]); printf("%d %f %f\n",count,lat[0],lat[179]);
fclose(fp); fclose(fp);
   
fp=fopen("{{cookiecutter.project_path}}/FESOM2_Mesh_Generation_{{cookiecutter.mesh_name}}/mg/topo/topog_{{cookiecutter.mesh_name}}.bin32","r"); fp=fopen("{{cookiecutter.project_path}}/FESOM2_MeshGen_{{cookiecutter.mesh_name}}/mg/topo/topog_{{cookiecutter.mesh_name}}.bin32","r");
count=fread(topo,sizeof(float),233312401,fp); count=fread(topo,sizeof(float),233312401,fp);
printf("%d %f %f %f %f %f\n",count,topo[0][0],topo[1][0],topo[2][0],topo[0][1],topo[0][2]); printf("%d %f %f %f %f %f\n",count,topo[0][0],topo[1][0],topo[2][0],topo[0][1],topo[0][2]);
fclose(fp); fclose(fp);
   
fp=fopen("{{cookiecutter.project_path}}/FESOM2_Mesh_Generation_{{cookiecutter.mesh_name}}/mg/topo/topog_grad_{{cookiecutter.mesh_name}}.bin32","r"); fp=fopen("{{cookiecutter.project_path}}/FESOM2_MeshGen_{{cookiecutter.mesh_name}}/mg/topo/topog_grad_{{cookiecutter.mesh_name}}.bin32","r");
count=fread(topo_grad,sizeof(float),233312401,fp); count=fread(topo_grad,sizeof(float),233312401,fp);
printf("%d %f %f %f\n",count,topo_grad[0][0],topo_grad[1][0],topo_grad[0][1]); printf("%d %f %f %f\n",count,topo_grad[0][0],topo_grad[1][0],topo_grad[0][1]);
fclose(fp); fclose(fp);
......
#!/bin/bash #!/bin/bash -e
#SBATCH -c 18 --time=12:00:00 -p smp #SBATCH -c 18 --time=12:00:00 -p smp
#Xsrun I know what I am doing #Xsrun I know what I am doing
cd {{cookiecutter.project_path}}/FESOM2_Mesh_Generation_{{cookiecutter.mesh_name}}/mesh_CORE2_{{cookiecutter.mesh_name}} cd {{cookiecutter.project_path}}/FESOM2_MeshGen_{{cookiecutter.mesh_name}}/mesh_CORE2_{{cookiecutter.mesh_name}}
make clean make clean
make basic make basic
make refine make refine
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
"project_path": "/work/ollie/pgierz/PalModII/", "project_path": "/work/ollie/pgierz/PalModII/",
"mesh_name": "EXAMPLE", "mesh_name": "EXAMPLE",
"input_varname": "topo", "input_varname": "topo",
"input_fpath": "/work/ollie/pgierz/PalModII/FESOM2_MIS3_Mesh_Generation/raw_input_data/reconstruction_a1_0.25_degree_42.5kaBP.nc", "input_fpath": "/work/ollie/pgierz/PalModII/FESOM2_MIS3_MeshGen/raw_input_data/reconstruction_a1_0.25_degree_42.5kaBP.nc",
"input_fname": "{{ cookiecutter.input_fpath.split('/')[-1] }}" "input_fname": "{{ cookiecutter.input_fpath.split('/')[-1] }}"
} }
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