Skip to content

Instantly share code, notes, and snippets.

View bishtgautam's full-sized avatar

Gautam Bisht bishtgautam

View GitHub Profile
ls -l CaseDocs/
total 128
-rw-rw---- 1 gbisht gbisht 444 Aug 26 19:49 atm_modelio.nml_0001
-rw-rw---- 1 gbisht gbisht 444 Aug 26 19:49 atm_modelio.nml_0002
-rw-rw---- 1 gbisht gbisht 440 Aug 26 19:49 cpl_modelio.nml
-rw-rw---- 1 gbisht gbisht 1362 Aug 26 19:49 datm_in_0001
-rw-rw---- 1 gbisht gbisht 1362 Aug 26 19:49 datm_in_0002
-rw-rw---- 1 gbisht gbisht 16115 Aug 26 19:49 datm.streams.txt.CLM_QIAN.Precip_0001
-rw-rw---- 1 gbisht gbisht 16115 Aug 26 19:49 datm.streams.txt.CLM_QIAN.Precip_0002
-rw-rw---- 1 gbisht gbisht 16109 Aug 26 19:49 datm.streams.txt.CLM_QIAN.Solar_0001
ncdump -h /global/cfs/cdirs/e3sm/inputdata/lnd/clm2/mappingdata/maps/ne1024np4pg2/map_0.5x0.5_MODIS_to_ne1024pg2_nco_c210828.nc
netcdf map_0.5x0.5_MODIS_to_ne1024pg2_nco_c210828 {
dimensions:
n_s = 10434382 ;
n_a = 259200 ;
n_b = 25165824 ;
nv_a = 4 ;
nv_b = 4 ;
src_grid_rank = 2 ;
dst_grid_rank = 1 ;
function convert_hdf5_to_mat()
files = dir('*.h5');
for ii = 1:length(files)
filename = files(ii).name;
disp(filename)
tmp1 = strsplit(filename,'-');
001) time 0.000000
002) doma_lat 0.000000
003) doma_lon 0.000000
004) doma_area 0.000000
005) doma_aream 0.000000
006) doma_mask 0.000000
007) doma_frac 0.000000
008) fraca_afrac 0.000000
009) fraca_ifrac 0.000000
010) fraca_ofrac 0.000000
static char help[] = "PETSc Annual Meeting 2025: Meshing Tutorial.\n\n\n";
#include <petsc.h>
static PetscErrorCode CreateMesh(MPI_Comm comm, DM *dm)
{
PetscFunctionBeginUser;
PetscCall(DMCreate(comm, dm));
PetscCall(DMSetType(*dm, DMPLEX));
PetscCall(DMSetFromOptions(*dm));
DETAIL: ==========================================================
DETAIL: RDycore (input read from harvey_north_america.yaml)
DETAIL: ==========================================================
DETAIL: Physics:
DETAIL: Flow:
DETAIL: Sediment model: disabled
DETAIL: Salinity model: disabled
DETAIL: Numerics:
DETAIL: Spatial discretization: finite volume (FV)
DETAIL: Temporal discretization: forward euler
srun -n 1 ./ex2 -malloc_debug 0 -log_view -dm_plex_box_faces 120 -dm_view -dm_plex_transform_view -dm_plex_transform_type refine_sbr -dm_plex_label_active 0,14399 -dm_plex_transform_active active -log_view -dm_refine 1
DMPlexTransform Object: 1 MPI process
type: refine_sbr
SBR refinement DMPlexTransform_0x84000000_1
DM Object: box 1 MPI process
type: plex
box in 2 dimensions:
Number of 0-cells per rank: 7896
Number of 1-cells per rank: 23310
Number of 2-cells per rank: 15415
srun -n 1 ./ex2 -malloc_debug 0 -log_view -dm_plex_box_faces 120 -dm_view -dm_plex_transform_view -dm_plex_transform_type refine_sbr -dm_plex_label_active 0,14399 -dm_plex_transform_active active -log_view
DM Object: box 1 MPI process
type: plex
box in 2 dimensions:
Number of 0-cells per rank: 7887
Number of 1-cells per rank: 23283
Number of 2-cells per rank: 15397
Labels:
celltype: 3 strata with value/size (0 (7887), 1 (23283), 3 (15397))
depth: 3 strata with value/size (0 (7887), 1 (23283), 2 (15397))
1. Added some timers
git diff driver-mct/main/prep_*.F90
diff --git a/driver-mct/main/prep_lnd_mod.F90 b/driver-mct/main/prep_lnd_mod.F90
index 344637f3fd..a07368a0bd 100644
--- a/driver-mct/main/prep_lnd_mod.F90
+++ b/driver-mct/main/prep_lnd_mod.F90
@@ -171,9 +171,11 @@ contains
write(logunit,*) ' '
write(logunit,F00) 'Initializing mapper_Fr2l'
#!/bin/sh
res=ELM_USRDAT
compset=IELMBC
mach=pm-cpu
compiler=gnu
project_id=m4267
N=1
e3sm_dir=/global/cfs/projectdirs/m4267/gbisht/e3sm-master