write_field.f90 Source File


This file depends on

sourcefile~~write_field.f90~~EfferentGraph sourcefile~write_field.f90 write_field.f90 sourcefile~strings_mod.f90 strings_mod.f90 sourcefile~write_field.f90->sourcefile~strings_mod.f90

Files dependent on this one

sourcefile~~write_field.f90~~AfferentGraph sourcefile~write_field.f90 write_field.f90 sourcefile~call_calfis_mod.f90 call_calfis_mod.f90 sourcefile~call_calfis_mod.f90->sourcefile~write_field.f90 sourcefile~write_field_loc.f90 write_field_loc.f90 sourcefile~call_calfis_mod.f90->sourcefile~write_field_loc.f90 sourcefile~exner_hyb_loc_m.f90 exner_hyb_loc_m.f90 sourcefile~call_calfis_mod.f90->sourcefile~exner_hyb_loc_m.f90 sourcefile~guide_mod.f90 guide_mod.f90 sourcefile~guide_mod.f90->sourcefile~write_field.f90 sourcefile~iniacademic_loc.f90 iniacademic_loc.f90 sourcefile~iniacademic_loc.f90->sourcefile~write_field.f90 sourcefile~write_field_p.f90 write_field_p.f90 sourcefile~write_field_p.f90->sourcefile~write_field.f90 sourcefile~advtrac_loc.f90 advtrac_loc.f90 sourcefile~advtrac_loc.f90->sourcefile~write_field.f90 sourcefile~advtrac_loc.f90->sourcefile~write_field_loc.f90 sourcefile~initdynav_loc.f90 initdynav_loc.f90 sourcefile~initdynav_loc.f90->sourcefile~write_field.f90 sourcefile~inithist_loc.f90 inithist_loc.f90 sourcefile~inithist_loc.f90->sourcefile~write_field.f90 sourcefile~initfluxsto_p.f90 initfluxsto_p.f90 sourcefile~initfluxsto_p.f90->sourcefile~write_field.f90 sourcefile~leapfrog.f90 leapfrog.f90 sourcefile~leapfrog.f90->sourcefile~write_field.f90 sourcefile~leapfrog.f90->sourcefile~guide_mod.f90 sourcefile~iniacademic.f90 iniacademic.f90 sourcefile~iniacademic.f90->sourcefile~write_field.f90 sourcefile~integrd_loc.f90 integrd_loc.f90 sourcefile~integrd_loc.f90->sourcefile~write_field.f90 sourcefile~integrd_loc.f90->sourcefile~write_field_loc.f90 sourcefile~leapfrog_loc.f90 leapfrog_loc.f90 sourcefile~leapfrog_loc.f90->sourcefile~write_field.f90 sourcefile~leapfrog_loc.f90->sourcefile~call_calfis_mod.f90 sourcefile~leapfrog_loc.f90->sourcefile~write_field_p.f90 sourcefile~leapfrog_loc.f90->sourcefile~write_field_loc.f90 sourcefile~leapfrog_loc.f90->sourcefile~exner_hyb_loc_m.f90 sourcefile~guide_loc_mod.f90 guide_loc_mod.f90 sourcefile~leapfrog_loc.f90->sourcefile~guide_loc_mod.f90 sourcefile~call_dissip_mod.f90 call_dissip_mod.f90 sourcefile~leapfrog_loc.f90->sourcefile~call_dissip_mod.f90 sourcefile~leapfrog_mod.f90 leapfrog_mod.f90 sourcefile~leapfrog_loc.f90->sourcefile~leapfrog_mod.f90 sourcefile~write_field_loc.f90->sourcefile~write_field.f90 sourcefile~write_field_phy.f90 write_field_phy.f90 sourcefile~write_field_phy.f90->sourcefile~write_field.f90 sourcefile~lmdz1d.f90 lmdz1d.F90 sourcefile~lmdz1d.f90->sourcefile~write_field_phy.f90 sourcefile~radlsw.f90~2 radlsw.F90 sourcefile~radlsw.f90~2->sourcefile~write_field_phy.f90 sourcefile~groupe_loc.f90 groupe_loc.f90 sourcefile~groupe_loc.f90->sourcefile~write_field_loc.f90 sourcefile~readaerosol_interp.f90 readaerosol_interp.f90 sourcefile~readaerosol_interp.f90->sourcefile~write_field_phy.f90 sourcefile~swr.f90 swr.F90 sourcefile~swr.f90->sourcefile~write_field_phy.f90 sourcefile~sw1s.f90 sw1s.F90 sourcefile~sw1s.f90->sourcefile~write_field_phy.f90 sourcefile~satellite_out_spla.f90~2 satellite_out_spla.f90 sourcefile~satellite_out_spla.f90~2->sourcefile~write_field_phy.f90 sourcefile~oasis.f90 oasis.F90 sourcefile~oasis.f90->sourcefile~write_field_phy.f90 sourcefile~exner_hyb_loc_m.f90->sourcefile~write_field_loc.f90 sourcefile~radlwsw_m.f90 radlwsw_m.F90 sourcefile~radlwsw_m.f90->sourcefile~write_field_phy.f90 sourcefile~lmdz_thermcell_old.f90 lmdz_thermcell_old.f90 sourcefile~lmdz_thermcell_old.f90->sourcefile~write_field_phy.f90 sourcefile~cpl_mod.f90 cpl_mod.F90 sourcefile~cpl_mod.f90->sourcefile~write_field_phy.f90 sourcefile~cpl_mod.f90->sourcefile~oasis.f90 sourcefile~dteta1_loc.f90 dteta1_loc.f90 sourcefile~dteta1_loc.f90->sourcefile~write_field_p.f90 sourcefile~bilan_dyn_loc.f90 bilan_dyn_loc.f90 sourcefile~bilan_dyn_loc.f90->sourcefile~write_field_loc.f90 sourcefile~fluxstokenc_p.f90 fluxstokenc_p.f90 sourcefile~fluxstokenc_p.f90->sourcefile~write_field_loc.f90 sourcefile~physiq_mod.f90 physiq_mod.F90 sourcefile~physiq_mod.f90->sourcefile~write_field_phy.f90 sourcefile~physiq_mod.f90->sourcefile~radlwsw_m.f90 sourcefile~phytracr_spl_mod.f90 phytracr_spl_mod.F90 sourcefile~physiq_mod.f90->sourcefile~phytracr_spl_mod.f90 sourcefile~regr_pr_time_av_m.f90 regr_pr_time_av_m.f90 sourcefile~physiq_mod.f90->sourcefile~regr_pr_time_av_m.f90 sourcefile~change_srf_frac_mod.f90 change_srf_frac_mod.F90 sourcefile~physiq_mod.f90->sourcefile~change_srf_frac_mod.f90 sourcefile~calltherm_mod.f90 calltherm_mod.F90 sourcefile~physiq_mod.f90->sourcefile~calltherm_mod.f90 sourcefile~phys_output_write_spl_mod.f90 phys_output_write_spl_mod.F90 sourcefile~physiq_mod.f90->sourcefile~phys_output_write_spl_mod.f90 sourcefile~pbl_surface_mod.f90 pbl_surface_mod.F90 sourcefile~physiq_mod.f90->sourcefile~pbl_surface_mod.f90 sourcefile~phyaqua_mod.f90 phyaqua_mod.F90 sourcefile~physiq_mod.f90->sourcefile~phyaqua_mod.f90 sourcefile~phyetat0_mod.f90 phyetat0_mod.f90 sourcefile~physiq_mod.f90->sourcefile~phyetat0_mod.f90 sourcefile~phys_output_write_mod.f90 phys_output_write_mod.F90 sourcefile~physiq_mod.f90->sourcefile~phys_output_write_mod.f90 sourcefile~diag_slp.f90 diag_slp.f90 sourcefile~physiq_mod.f90->sourcefile~diag_slp.f90 sourcefile~phytrac_mod.f90 phytrac_mod.f90 sourcefile~physiq_mod.f90->sourcefile~phytrac_mod.f90 sourcefile~create_etat0_limit_unstruct_mod.f90 create_etat0_limit_unstruct_mod.f90 sourcefile~physiq_mod.f90->sourcefile~create_etat0_limit_unstruct_mod.f90 sourcefile~physiqex_mod.f90 physiqex_mod.F90 sourcefile~physiq_mod.f90->sourcefile~physiqex_mod.f90 sourcefile~phys_output_mod.f90 phys_output_mod.F90 sourcefile~physiq_mod.f90->sourcefile~phys_output_mod.f90 sourcefile~oasis.f90~2 oasis.F90 sourcefile~oasis.f90~2->sourcefile~write_field_phy.f90 sourcefile~phytracr_spl_mod.f90~2 phytracr_spl_mod.F90 sourcefile~phytracr_spl_mod.f90~2->sourcefile~write_field_phy.f90 sourcefile~dustemission_mod.f90 dustemission_mod.f90 sourcefile~phytracr_spl_mod.f90~2->sourcefile~dustemission_mod.f90 sourcefile~guide_loc_mod.f90->sourcefile~write_field_loc.f90 sourcefile~guide_loc_mod.f90->sourcefile~exner_hyb_loc_m.f90 sourcefile~call_dissip_mod.f90->sourcefile~write_field_loc.f90 sourcefile~radiation_cloud.f90 radiation_cloud.F90 sourcefile~radiation_cloud.f90->sourcefile~write_field_phy.f90 sourcefile~swuvo3.f90 swuvo3.F90 sourcefile~swuvo3.f90->sourcefile~write_field_phy.f90 sourcefile~cpl_mod.f90~2 cpl_mod.F90 sourcefile~cpl_mod.f90~2->sourcefile~write_field_phy.f90 sourcefile~cpl_mod.f90~2->sourcefile~oasis.f90 sourcefile~swuvo3.f90~2 swuvo3.F90 sourcefile~swuvo3.f90~2->sourcefile~write_field_phy.f90 sourcefile~sw1s.f90~2 sw1s.F90 sourcefile~sw1s.f90~2->sourcefile~write_field_phy.f90 sourcefile~leapfrog_mod.f90->sourcefile~call_calfis_mod.f90 sourcefile~leapfrog_mod.f90->sourcefile~call_dissip_mod.f90 sourcefile~gradiv2_loc.f90 gradiv2_loc.f90 sourcefile~gradiv2_loc.f90->sourcefile~write_field_p.f90 sourcefile~caladvtrac_loc.f90 caladvtrac_loc.f90 sourcefile~caladvtrac_loc.f90->sourcefile~write_field_loc.f90 sourcefile~lmdz_thermcell_old.f90~2 lmdz_thermcell_old.f90 sourcefile~lmdz_thermcell_old.f90~2->sourcefile~write_field_phy.f90 sourcefile~nxgraro2_loc.f90 nxgraro2_loc.f90 sourcefile~nxgraro2_loc.f90->sourcefile~write_field_p.f90 sourcefile~groupeun_loc.f90 groupeun_loc.f90 sourcefile~groupeun_loc.f90->sourcefile~write_field_p.f90 sourcefile~radlsw.f90 radlsw.F90 sourcefile~radlsw.f90->sourcefile~write_field_phy.f90 sourcefile~radlwsw_m.f90~2 radlwsw_m.F90 sourcefile~radlwsw_m.f90~2->sourcefile~write_field_phy.f90 sourcefile~readaerosol_interp.f90~2 readaerosol_interp.f90 sourcefile~readaerosol_interp.f90~2->sourcefile~write_field_phy.f90 sourcefile~regr_pr_time_av_m.f90~2 regr_pr_time_av_m.f90 sourcefile~regr_pr_time_av_m.f90~2->sourcefile~write_field_phy.f90 sourcefile~swr.f90~2 swr.F90 sourcefile~swr.f90~2->sourcefile~write_field_phy.f90 sourcefile~physiq_mod.f90~2 physiq_mod.F90 sourcefile~physiq_mod.f90~2->sourcefile~write_field_phy.f90 sourcefile~physiq_mod.f90~2->sourcefile~radlwsw_m.f90 sourcefile~physiq_mod.f90~2->sourcefile~phytracr_spl_mod.f90 sourcefile~physiq_mod.f90~2->sourcefile~regr_pr_time_av_m.f90 sourcefile~physiq_mod.f90~2->sourcefile~change_srf_frac_mod.f90 sourcefile~physiq_mod.f90~2->sourcefile~calltherm_mod.f90 sourcefile~physiq_mod.f90~2->sourcefile~phys_output_write_spl_mod.f90 sourcefile~physiq_mod.f90~2->sourcefile~pbl_surface_mod.f90 sourcefile~physiq_mod.f90~2->sourcefile~phyaqua_mod.f90 sourcefile~physiq_mod.f90~2->sourcefile~phyetat0_mod.f90 sourcefile~physiq_mod.f90~2->sourcefile~phys_output_write_mod.f90 sourcefile~physiq_mod.f90~2->sourcefile~diag_slp.f90 sourcefile~physiq_mod.f90~2->sourcefile~phytrac_mod.f90 sourcefile~physiq_mod.f90~2->sourcefile~create_etat0_limit_unstruct_mod.f90 sourcefile~physiq_mod.f90~2->sourcefile~physiqex_mod.f90 sourcefile~physiq_mod.f90~2->sourcefile~phys_output_mod.f90 sourcefile~advect_new_loc.f90 advect_new_loc.f90 sourcefile~advect_new_loc.f90->sourcefile~write_field_loc.f90 sourcefile~satellite_out_spla.f90 satellite_out_spla.f90 sourcefile~satellite_out_spla.f90->sourcefile~write_field_phy.f90 sourcefile~swni.f90~2 swni.F90 sourcefile~swni.f90~2->sourcefile~write_field_phy.f90 sourcefile~vlspltgen_loc.f90 vlspltgen_loc.F90 sourcefile~vlspltgen_loc.f90->sourcefile~write_field_loc.f90 sourcefile~phytracr_spl_mod.f90->sourcefile~write_field_phy.f90 sourcefile~phytracr_spl_mod.f90->sourcefile~dustemission_mod.f90 sourcefile~swni.f90 swni.F90 sourcefile~swni.f90->sourcefile~write_field_phy.f90 sourcefile~dustemission_mod.f90~2 dustemission_mod.f90 sourcefile~dustemission_mod.f90~2->sourcefile~write_field_phy.f90 sourcefile~caldyn_loc.f90 caldyn_loc.f90 sourcefile~caldyn_loc.f90->sourcefile~write_field_loc.f90 sourcefile~regr_pr_time_av_m.f90->sourcefile~write_field_phy.f90 sourcefile~dustemission_mod.f90->sourcefile~write_field_phy.f90 sourcefile~calcul_cloud_overlap_decorr_len.f90 calcul_cloud_overlap_decorr_len.f90 sourcefile~calcul_cloud_overlap_decorr_len.f90->sourcefile~write_field_phy.f90 sourcefile~sw.f90 sw.F90 sourcefile~sw.f90->sourcefile~write_field_phy.f90 sourcefile~sw.f90~2 sw.F90 sourcefile~sw.f90~2->sourcefile~write_field_phy.f90 sourcefile~dissip_loc.f90 dissip_loc.f90 sourcefile~dissip_loc.f90->sourcefile~write_field_loc.f90 sourcefile~surf_landice_mod.f90 surf_landice_mod.F90 sourcefile~surf_landice_mod.f90->sourcefile~cpl_mod.f90 sourcefile~old_lmdz1d.f90 old_lmdz1d.f90 sourcefile~old_lmdz1d.f90->sourcefile~physiq_mod.f90 sourcefile~old_lmdz1d.f90->sourcefile~pbl_surface_mod.f90 sourcefile~old_lmdz1d.f90->sourcefile~phyaqua_mod.f90 sourcefile~iniphysiq_mod.f90 iniphysiq_mod.F90 sourcefile~old_lmdz1d.f90->sourcefile~iniphysiq_mod.f90 sourcefile~radiation_homogeneous_sw.f90 radiation_homogeneous_sw.F90 sourcefile~radiation_homogeneous_sw.f90->sourcefile~radiation_cloud.f90 sourcefile~radiation_spartacus_lw.f90 radiation_spartacus_lw.F90 sourcefile~radiation_spartacus_lw.f90->sourcefile~radiation_cloud.f90 sourcefile~radiation_tripleclouds_sw.f90~2 radiation_tripleclouds_sw.F90 sourcefile~radiation_tripleclouds_sw.f90~2->sourcefile~radiation_cloud.f90 sourcefile~surf_land_orchidee_mod.f90 surf_land_orchidee_mod.F90 sourcefile~surf_land_orchidee_mod.f90->sourcefile~cpl_mod.f90 sourcefile~ocean_cpl_mod.f90 ocean_cpl_mod.f90 sourcefile~ocean_cpl_mod.f90->sourcefile~cpl_mod.f90 sourcefile~ocean_cpl_mod.f90~2 ocean_cpl_mod.f90 sourcefile~ocean_cpl_mod.f90~2->sourcefile~cpl_mod.f90 sourcefile~ecrad_driver_read_input.f90 ecrad_driver_read_input.F90 sourcefile~ecrad_driver_read_input.f90->sourcefile~radiation_cloud.f90 sourcefile~surf_land_bucket_hetero_mod.f90~2 surf_land_bucket_hetero_mod.F90 sourcefile~surf_land_bucket_hetero_mod.f90~2->sourcefile~cpl_mod.f90 sourcefile~radiation_general_cloud_optics.f90 radiation_general_cloud_optics.F90 sourcefile~radiation_general_cloud_optics.f90->sourcefile~radiation_cloud.f90 sourcefile~ecrad_driver.f90 ecrad_driver.F90 sourcefile~ecrad_driver.f90->sourcefile~radiation_cloud.f90 sourcefile~ecrad_driver.f90->sourcefile~ecrad_driver_read_input.f90 sourcefile~ecrad_driver.f90->sourcefile~radiation_general_cloud_optics.f90 sourcefile~radiation_save.f90 radiation_save.F90 sourcefile~ecrad_driver.f90->sourcefile~radiation_save.f90 sourcefile~radiation_interface.f90 radiation_interface.F90 sourcefile~ecrad_driver.f90->sourcefile~radiation_interface.f90 sourcefile~radiation_spartacus_sw.f90~2 radiation_spartacus_sw.F90 sourcefile~radiation_spartacus_sw.f90~2->sourcefile~radiation_cloud.f90 sourcefile~radiation_tripleclouds_lw.f90~2 radiation_tripleclouds_lw.F90 sourcefile~radiation_tripleclouds_lw.f90~2->sourcefile~radiation_cloud.f90 sourcefile~change_srf_frac_mod.f90->sourcefile~cpl_mod.f90 sourcefile~change_srf_frac_mod.f90->sourcefile~pbl_surface_mod.f90 sourcefile~callphysiq_mod.f90 callphysiq_mod.f90 sourcefile~callphysiq_mod.f90->sourcefile~physiq_mod.f90 sourcefile~radiation_mcica_lw.f90~2 radiation_mcica_lw.F90 sourcefile~radiation_mcica_lw.f90~2->sourcefile~radiation_cloud.f90 sourcefile~radiation_monochromatic.f90~2 radiation_monochromatic.F90 sourcefile~radiation_monochromatic.f90~2->sourcefile~radiation_cloud.f90 sourcefile~surf_landice_mod.f90~2 surf_landice_mod.F90 sourcefile~surf_landice_mod.f90~2->sourcefile~cpl_mod.f90 sourcefile~radiation_scheme.f90~2 radiation_scheme.F90 sourcefile~radiation_scheme.f90~2->sourcefile~radiation_cloud.f90 sourcefile~radiation_scheme.f90~2->sourcefile~radiation_save.f90 sourcefile~radiation_scheme.f90~2->sourcefile~radiation_interface.f90 sourcefile~radiation_setup.f90 radiation_setup.F90 sourcefile~radiation_scheme.f90~2->sourcefile~radiation_setup.f90 sourcefile~radiation_cloud_optics.f90~2 radiation_cloud_optics.F90 sourcefile~radiation_cloud_optics.f90~2->sourcefile~radiation_cloud.f90 sourcefile~calltherm_mod.f90~2 calltherm_mod.F90 sourcefile~calltherm_mod.f90~2->sourcefile~lmdz_thermcell_old.f90 sourcefile~radiation_mcica_sw.f90 radiation_mcica_sw.F90 sourcefile~radiation_mcica_sw.f90->sourcefile~radiation_cloud.f90 sourcefile~radiation_scheme_mod.f90 radiation_scheme_mod.f90 sourcefile~radiation_scheme_mod.f90->sourcefile~radiation_cloud.f90 sourcefile~radiation_scheme_mod.f90->sourcefile~radiation_save.f90 sourcefile~radiation_scheme_mod.f90->sourcefile~radiation_interface.f90 sourcefile~radiation_scheme_mod.f90->sourcefile~radiation_setup.f90 sourcefile~radiation_general_cloud_optics.f90~2 radiation_general_cloud_optics.F90 sourcefile~radiation_general_cloud_optics.f90~2->sourcefile~radiation_cloud.f90 sourcefile~calltherm_mod.f90->sourcefile~lmdz_thermcell_old.f90 sourcefile~radiation_tripleclouds_lw.f90 radiation_tripleclouds_lw.F90 sourcefile~radiation_tripleclouds_lw.f90->sourcefile~radiation_cloud.f90 sourcefile~radiation_mcica_sw.f90~2 radiation_mcica_sw.F90 sourcefile~radiation_mcica_sw.f90~2->sourcefile~radiation_cloud.f90 sourcefile~radiation_save.f90~2 radiation_save.F90 sourcefile~radiation_save.f90~2->sourcefile~radiation_cloud.f90 sourcefile~regr_pr_comb_coefoz_m.f90 regr_pr_comb_coefoz_m.f90 sourcefile~regr_pr_comb_coefoz_m.f90->sourcefile~regr_pr_time_av_m.f90 sourcefile~coarsemission.f90 coarsemission.f90 sourcefile~coarsemission.f90->sourcefile~dustemission_mod.f90 sourcefile~callphysiq_mod.f90~2 callphysiq_mod.f90 sourcefile~callphysiq_mod.f90~2->sourcefile~physiq_mod.f90 sourcefile~scm.f90 scm.f90 sourcefile~scm.f90->sourcefile~physiq_mod.f90 sourcefile~scm.f90->sourcefile~pbl_surface_mod.f90 sourcefile~scm.f90->sourcefile~phyaqua_mod.f90 sourcefile~scm.f90->sourcefile~iniphysiq_mod.f90 sourcefile~radiation_save.f90->sourcefile~radiation_cloud.f90 sourcefile~radiation_cloud_optics.f90 radiation_cloud_optics.F90 sourcefile~radiation_cloud_optics.f90->sourcefile~radiation_cloud.f90 sourcefile~radiation_mcica_lw.f90 radiation_mcica_lw.F90 sourcefile~radiation_mcica_lw.f90->sourcefile~radiation_cloud.f90 sourcefile~surf_land_bucket_hetero_mod.f90 surf_land_bucket_hetero_mod.F90 sourcefile~surf_land_bucket_hetero_mod.f90->sourcefile~cpl_mod.f90 sourcefile~surf_land_bucket_mod.f90~2 surf_land_bucket_mod.F90 sourcefile~surf_land_bucket_mod.f90~2->sourcefile~cpl_mod.f90 sourcefile~radiation_monochromatic.f90 radiation_monochromatic.F90 sourcefile~radiation_monochromatic.f90->sourcefile~radiation_cloud.f90 sourcefile~radiation_interface.f90->sourcefile~radiation_cloud.f90 sourcefile~radiation_interface.f90->sourcefile~radiation_homogeneous_sw.f90 sourcefile~radiation_interface.f90->sourcefile~radiation_spartacus_lw.f90 sourcefile~radiation_interface.f90->sourcefile~radiation_general_cloud_optics.f90 sourcefile~radiation_interface.f90->sourcefile~radiation_mcica_sw.f90 sourcefile~radiation_interface.f90->sourcefile~radiation_tripleclouds_lw.f90 sourcefile~radiation_interface.f90->sourcefile~radiation_save.f90 sourcefile~radiation_interface.f90->sourcefile~radiation_cloud_optics.f90 sourcefile~radiation_interface.f90->sourcefile~radiation_mcica_lw.f90 sourcefile~radiation_interface.f90->sourcefile~radiation_monochromatic.f90 sourcefile~radiation_homogeneous_lw.f90 radiation_homogeneous_lw.F90 sourcefile~radiation_interface.f90->sourcefile~radiation_homogeneous_lw.f90 sourcefile~radiation_spartacus_sw.f90 radiation_spartacus_sw.F90 sourcefile~radiation_interface.f90->sourcefile~radiation_spartacus_sw.f90 sourcefile~radiation_tripleclouds_sw.f90 radiation_tripleclouds_sw.F90 sourcefile~radiation_interface.f90->sourcefile~radiation_tripleclouds_sw.f90 sourcefile~phys_output_write_spl_mod.f90->sourcefile~phytracr_spl_mod.f90 sourcefile~phys_output_write_spl_mod.f90->sourcefile~dustemission_mod.f90 sourcefile~phys_output_write_spl_mod.f90->sourcefile~pbl_surface_mod.f90 sourcefile~regr_pr_comb_coefoz_m.f90~2 regr_pr_comb_coefoz_m.f90 sourcefile~regr_pr_comb_coefoz_m.f90~2->sourcefile~regr_pr_time_av_m.f90 sourcefile~surf_land_bucket_mod.f90 surf_land_bucket_mod.F90 sourcefile~surf_land_bucket_mod.f90->sourcefile~cpl_mod.f90 sourcefile~pbl_surface_mod.f90~2 pbl_surface_mod.F90 sourcefile~pbl_surface_mod.f90~2->sourcefile~cpl_mod.f90 sourcefile~pbl_surface_mod.f90~2->sourcefile~surf_landice_mod.f90 sourcefile~surf_land_mod.f90 surf_land_mod.F90 sourcefile~pbl_surface_mod.f90~2->sourcefile~surf_land_mod.f90 sourcefile~surf_seaice_mod.f90 surf_seaice_mod.F90 sourcefile~pbl_surface_mod.f90~2->sourcefile~surf_seaice_mod.f90 sourcefile~surf_ocean_mod.f90 surf_ocean_mod.F90 sourcefile~pbl_surface_mod.f90~2->sourcefile~surf_ocean_mod.f90 sourcefile~ecrad_ifs_driver.f90 ecrad_ifs_driver.F90 sourcefile~ecrad_ifs_driver.f90->sourcefile~radiation_cloud.f90 sourcefile~ecrad_ifs_driver.f90->sourcefile~ecrad_driver_read_input.f90 sourcefile~ecrad_ifs_driver.f90->sourcefile~radiation_save.f90 sourcefile~ecrad_ifs_driver.f90->sourcefile~radiation_setup.f90 sourcefile~ecrad_ifs_driver_blocked.f90 ecrad_ifs_driver_blocked.F90 sourcefile~ecrad_ifs_driver_blocked.f90->sourcefile~radiation_cloud.f90 sourcefile~ecrad_ifs_driver_blocked.f90->sourcefile~ecrad_driver_read_input.f90 sourcefile~ecrad_ifs_driver_blocked.f90->sourcefile~radiation_save.f90 sourcefile~ifs_blocking.f90 ifs_blocking.F90 sourcefile~ecrad_ifs_driver_blocked.f90->sourcefile~ifs_blocking.f90 sourcefile~ecrad_ifs_driver_blocked.f90->sourcefile~radiation_setup.f90 sourcefile~radiation_interface.f90~2 radiation_interface.F90 sourcefile~radiation_interface.f90~2->sourcefile~radiation_cloud.f90 sourcefile~radiation_interface.f90~2->sourcefile~radiation_homogeneous_sw.f90 sourcefile~radiation_interface.f90~2->sourcefile~radiation_spartacus_lw.f90 sourcefile~radiation_interface.f90~2->sourcefile~radiation_general_cloud_optics.f90 sourcefile~radiation_interface.f90~2->sourcefile~radiation_mcica_sw.f90 sourcefile~radiation_interface.f90~2->sourcefile~radiation_tripleclouds_lw.f90 sourcefile~radiation_interface.f90~2->sourcefile~radiation_save.f90 sourcefile~radiation_interface.f90~2->sourcefile~radiation_cloud_optics.f90 sourcefile~radiation_interface.f90~2->sourcefile~radiation_mcica_lw.f90 sourcefile~radiation_interface.f90~2->sourcefile~radiation_monochromatic.f90 sourcefile~radiation_interface.f90~2->sourcefile~radiation_homogeneous_lw.f90 sourcefile~radiation_interface.f90~2->sourcefile~radiation_spartacus_sw.f90 sourcefile~radiation_interface.f90~2->sourcefile~radiation_tripleclouds_sw.f90 sourcefile~radiation_homogeneous_lw.f90~2 radiation_homogeneous_lw.F90 sourcefile~radiation_homogeneous_lw.f90~2->sourcefile~radiation_cloud.f90 sourcefile~radiation_spartacus_lw.f90~2 radiation_spartacus_lw.F90 sourcefile~radiation_spartacus_lw.f90~2->sourcefile~radiation_cloud.f90 sourcefile~ifs_blocking.f90->sourcefile~radiation_cloud.f90 sourcefile~ifs_blocking.f90->sourcefile~radiation_setup.f90 sourcefile~phys_output_write_spl_mod.f90~2 phys_output_write_spl_mod.F90 sourcefile~phys_output_write_spl_mod.f90~2->sourcefile~phytracr_spl_mod.f90 sourcefile~phys_output_write_spl_mod.f90~2->sourcefile~dustemission_mod.f90 sourcefile~phys_output_write_spl_mod.f90~2->sourcefile~pbl_surface_mod.f90 sourcefile~pbl_surface_mod.f90->sourcefile~cpl_mod.f90 sourcefile~pbl_surface_mod.f90->sourcefile~surf_landice_mod.f90 sourcefile~pbl_surface_mod.f90->sourcefile~surf_land_mod.f90 sourcefile~pbl_surface_mod.f90->sourcefile~surf_seaice_mod.f90 sourcefile~pbl_surface_mod.f90->sourcefile~surf_ocean_mod.f90 sourcefile~radiation_homogeneous_lw.f90->sourcefile~radiation_cloud.f90 sourcefile~coarsemission.f90~2 coarsemission.f90 sourcefile~coarsemission.f90~2->sourcefile~dustemission_mod.f90 sourcefile~radiation_spartacus_sw.f90->sourcefile~radiation_cloud.f90 sourcefile~radiation_tripleclouds_sw.f90->sourcefile~radiation_cloud.f90 sourcefile~radiation_scheme.f90 radiation_scheme.F90 sourcefile~radiation_scheme.f90->sourcefile~radiation_cloud.f90 sourcefile~radiation_scheme.f90->sourcefile~radiation_save.f90 sourcefile~radiation_scheme.f90->sourcefile~radiation_interface.f90 sourcefile~radiation_scheme.f90->sourcefile~radiation_setup.f90 sourcefile~radiation_homogeneous_sw.f90~2 radiation_homogeneous_sw.F90 sourcefile~radiation_homogeneous_sw.f90~2->sourcefile~radiation_cloud.f90 sourcefile~surf_land_orchidee_mod.f90~2 surf_land_orchidee_mod.F90 sourcefile~surf_land_orchidee_mod.f90~2->sourcefile~cpl_mod.f90 sourcefile~traclmdz_mod.f90~2 traclmdz_mod.f90 sourcefile~traclmdz_mod.f90~2->sourcefile~regr_pr_comb_coefoz_m.f90 sourcefile~o3_chem_m.f90 o3_chem_m.f90 sourcefile~traclmdz_mod.f90~2->sourcefile~o3_chem_m.f90 sourcefile~surf_seaice_mod.f90~2 surf_seaice_mod.F90 sourcefile~surf_seaice_mod.f90~2->sourcefile~ocean_cpl_mod.f90 sourcefile~calfis.f90 calfis.f90 sourcefile~calfis.f90->sourcefile~callphysiq_mod.f90 sourcefile~surf_land_mod.f90->sourcefile~surf_land_orchidee_mod.f90 sourcefile~surf_land_mod.f90->sourcefile~surf_land_bucket_hetero_mod.f90 sourcefile~surf_land_mod.f90->sourcefile~surf_land_bucket_mod.f90 sourcefile~o3_chem_m.f90->sourcefile~regr_pr_comb_coefoz_m.f90 sourcefile~phyredem.f90 phyredem.F90 sourcefile~phyredem.f90->sourcefile~pbl_surface_mod.f90 sourcefile~traclmdz_mod.f90 traclmdz_mod.f90 sourcefile~phyredem.f90->sourcefile~traclmdz_mod.f90 sourcefile~create_etat0_unstruct_mod.f90 create_etat0_unstruct_mod.f90 sourcefile~create_etat0_unstruct_mod.f90->sourcefile~pbl_surface_mod.f90 sourcefile~phyaqua_mod.f90->sourcefile~pbl_surface_mod.f90 sourcefile~phys_output_write_mod.f90~2 phys_output_write_mod.F90 sourcefile~phys_output_write_mod.f90~2->sourcefile~pbl_surface_mod.f90 sourcefile~phys_output_write_mod.f90~2->sourcefile~phytrac_mod.f90 sourcefile~radiation_setup.f90->sourcefile~radiation_interface.f90 sourcefile~etat0phys_netcdf.f90 etat0phys_netcdf.f90 sourcefile~etat0phys_netcdf.f90->sourcefile~pbl_surface_mod.f90 sourcefile~phyetat0_mod.f90->sourcefile~ocean_cpl_mod.f90 sourcefile~phyetat0_mod.f90->sourcefile~pbl_surface_mod.f90 sourcefile~phyetat0_mod.f90->sourcefile~traclmdz_mod.f90 sourcefile~traclmdz_mod.f90->sourcefile~regr_pr_comb_coefoz_m.f90 sourcefile~traclmdz_mod.f90->sourcefile~o3_chem_m.f90 sourcefile~phys_output_write_mod.f90->sourcefile~pbl_surface_mod.f90 sourcefile~phys_output_write_mod.f90->sourcefile~phytrac_mod.f90 sourcefile~radiation_setup.f90~2 radiation_setup.F90 sourcefile~radiation_setup.f90~2->sourcefile~radiation_interface.f90 sourcefile~create_etat0_unstruct_mod.f90~2 create_etat0_unstruct_mod.f90 sourcefile~create_etat0_unstruct_mod.f90~2->sourcefile~pbl_surface_mod.f90 sourcefile~o3_chem_m.f90~2 o3_chem_m.f90 sourcefile~o3_chem_m.f90~2->sourcefile~regr_pr_comb_coefoz_m.f90 sourcefile~surf_ocean_mod.f90~2 surf_ocean_mod.F90 sourcefile~surf_ocean_mod.f90~2->sourcefile~ocean_cpl_mod.f90 sourcefile~surf_seaice_mod.f90->sourcefile~ocean_cpl_mod.f90 sourcefile~surf_land_mod.f90~2 surf_land_mod.F90 sourcefile~surf_land_mod.f90~2->sourcefile~surf_land_orchidee_mod.f90 sourcefile~surf_land_mod.f90~2->sourcefile~surf_land_bucket_hetero_mod.f90 sourcefile~surf_land_mod.f90~2->sourcefile~surf_land_bucket_mod.f90 sourcefile~surf_ocean_mod.f90->sourcefile~ocean_cpl_mod.f90 sourcefile~lsc_scav.f90 lsc_scav.f90 sourcefile~lsc_scav.f90->sourcefile~traclmdz_mod.f90 sourcefile~diag_slp.f90->sourcefile~phys_output_write_mod.f90 sourcefile~lsc_scav_orig.f90~2 lsc_scav_orig.f90 sourcefile~lsc_scav_orig.f90~2->sourcefile~traclmdz_mod.f90 sourcefile~phytrac_mod.f90->sourcefile~traclmdz_mod.f90 sourcefile~cltracrn.f90~2 cltracrn.f90 sourcefile~cltracrn.f90~2->sourcefile~traclmdz_mod.f90 sourcefile~physiqex_mod.f90~2 physiqex_mod.F90 sourcefile~physiqex_mod.f90~2->sourcefile~phyetat0_mod.f90 sourcefile~ce0l.f90 ce0l.F90 sourcefile~ce0l.f90->sourcefile~etat0phys_netcdf.f90 sourcefile~ce0l.f90->sourcefile~iniphysiq_mod.f90 sourcefile~initrrnpb.f90 initrrnpb.f90 sourcefile~initrrnpb.f90->sourcefile~traclmdz_mod.f90 sourcefile~lsc_scav_orig.f90 lsc_scav_orig.f90 sourcefile~lsc_scav_orig.f90->sourcefile~traclmdz_mod.f90 sourcefile~radio_decay.f90 radio_decay.f90 sourcefile~radio_decay.f90->sourcefile~traclmdz_mod.f90 sourcefile~phys_output_mod.f90~2 phys_output_mod.F90 sourcefile~phys_output_mod.f90~2->sourcefile~phys_output_write_mod.f90 sourcefile~iniphysiq_mod.f90->sourcefile~phyaqua_mod.f90 sourcefile~create_etat0_limit_unstruct_mod.f90~2 create_etat0_limit_unstruct_mod.f90 sourcefile~create_etat0_limit_unstruct_mod.f90~2->sourcefile~create_etat0_unstruct_mod.f90 sourcefile~create_etat0_limit_unstruct_mod.f90~2->sourcefile~phyaqua_mod.f90 sourcefile~lsc_scav_spl.f90 lsc_scav_spl.f90 sourcefile~lsc_scav_spl.f90->sourcefile~traclmdz_mod.f90 sourcefile~initrrnpb.f90~2 initrrnpb.f90 sourcefile~initrrnpb.f90~2->sourcefile~traclmdz_mod.f90 sourcefile~radio_decay.f90~2 radio_decay.f90 sourcefile~radio_decay.f90~2->sourcefile~traclmdz_mod.f90 sourcefile~create_etat0_limit_unstruct_mod.f90->sourcefile~create_etat0_unstruct_mod.f90 sourcefile~create_etat0_limit_unstruct_mod.f90->sourcefile~phyaqua_mod.f90 sourcefile~physiqex_mod.f90->sourcefile~phyetat0_mod.f90 sourcefile~lsc_scav_spl.f90~2 lsc_scav_spl.f90 sourcefile~lsc_scav_spl.f90~2->sourcefile~traclmdz_mod.f90 sourcefile~lsc_scav.f90~2 lsc_scav.f90 sourcefile~lsc_scav.f90~2->sourcefile~traclmdz_mod.f90 sourcefile~phys_output_mod.f90->sourcefile~phys_output_write_mod.f90 sourcefile~diag_slp.f90~2 diag_slp.f90 sourcefile~diag_slp.f90~2->sourcefile~phys_output_write_mod.f90 sourcefile~cltracrn.f90 cltracrn.f90 sourcefile~cltracrn.f90->sourcefile~traclmdz_mod.f90 sourcefile~iniphysiq_mod.f90~2 iniphysiq_mod.F90 sourcefile~iniphysiq_mod.f90~2->sourcefile~phyaqua_mod.f90 sourcefile~phytrac_mod.f90~2 phytrac_mod.f90 sourcefile~phytrac_mod.f90~2->sourcefile~traclmdz_mod.f90 sourcefile~recmwf_aero.f90 recmwf_aero.F90 sourcefile~recmwf_aero.f90->sourcefile~phys_output_mod.f90 sourcefile~gcm.f90 gcm.F90 sourcefile~gcm.f90->sourcefile~iniphysiq_mod.f90 sourcefile~recmwf_aero.f90~2 recmwf_aero.F90 sourcefile~recmwf_aero.f90~2->sourcefile~phys_output_mod.f90 sourcefile~sw_aeroar4.f90~2 sw_aeroAR4.f90 sourcefile~sw_aeroar4.f90~2->sourcefile~phys_output_mod.f90 sourcefile~replay3d.f90 replay3d.f90 sourcefile~replay3d.f90->sourcefile~iniphysiq_mod.f90 sourcefile~sw_aeroar4.f90 sw_aeroAR4.f90 sourcefile~sw_aeroar4.f90->sourcefile~phys_output_mod.f90

Contents

Source Code


Source Code

!
! $Id: write_field.f90 5748 2025-07-02 10:00:08Z dcugnet $
!
module write_field
  USE netcdf, ONLY: nf90_sync, nf90_put_var, nf90_enddef, nf90_def_dim, nf90_unlimited, &
          nf90_clobber, nf90_create, nf90_def_var, nf90_double
  USE strings_mod, ONLY: num2str
  IMPLICIT NONE; PRIVATE
  PUBLIC WriteField

  integer, parameter :: MaxWriteField = 100
  integer, dimension(MaxWriteField),save :: FieldId
  integer, dimension(MaxWriteField),save :: FieldVarId
  integer, dimension(MaxWriteField),save :: FieldIndex
  character(len=255), dimension(MaxWriteField) ::  FieldName 
   
  integer,save :: NbField = 0
  
  interface WriteField
    module procedure WriteField3d,WriteField2d,WriteField1d
  end interface WriteField
  contains
  
    function GetFieldIndex(name)
    implicit none
      integer          :: GetFieldindex
      character(len=*) :: name
    
      character(len=255) :: TrueName
      integer            :: i
       
      
      TrueName=TRIM(ADJUSTL(name))
    
      GetFieldIndex=-1
      do i=1,NbField
        if (TrueName==FieldName(i)) then
          GetFieldIndex=i
          exit
        endif
      enddo
    end function GetFieldIndex
 
    subroutine WriteField3d(name,Field)
    implicit none
      character(len=*) :: name
      real, dimension(:,:,:) :: Field 
      integer, dimension(3) :: Dim
      
      Dim=shape(Field)
      call WriteField_gen(name,Field,Dim(1),Dim(2),Dim(3))  
  
    end subroutine WriteField3d
    
    subroutine WriteField2d(name,Field)
    implicit none
      character(len=*) :: name
      real, dimension(:,:) :: Field 
      integer, dimension(2) :: Dim
      
      Dim=shape(Field)
      call WriteField_gen(name,Field,Dim(1),Dim(2),1)  
  
    end subroutine WriteField2d
    
    subroutine WriteField1d(name,Field)
    implicit none
      character(len=*) :: name
      real, dimension(:) :: Field 
      integer, dimension(1) :: Dim
      
      Dim=shape(Field)
      call WriteField_gen(name,Field,Dim(1),1,1)  
  
    end subroutine WriteField1d
        
    subroutine WriteField_gen(name,Field,dimx,dimy,dimz)
    implicit none
      character(len=*) :: name
      integer :: dimx,dimy,dimz
      real,dimension(dimx,dimy,dimz) :: Field
      integer,dimension(dimx*dimy*dimz) :: ndex
      integer :: status
      integer :: index
      integer :: start(4)
      integer :: count(4)
      
           
      Index=GetFieldIndex(name)
      if (Index==-1) then
        call CreateNewField(name,dimx,dimy,dimz)
	Index=GetFieldIndex(name)
      else
        FieldIndex(Index)=FieldIndex(Index)+1.
      endif
      
      start(1)=1
      start(2)=1
      start(3)=1
      start(4)=FieldIndex(Index)

      count(1)=dimx
      count(2)=dimy
      count(3)=dimz
      count(4)=1

      status = nf90_put_var(FieldId(Index),FieldVarId(Index),Field,start,count)
      status = nf90_sync(FieldId(Index))
      
    end subroutine WriteField_gen
       
    subroutine CreateNewField(name,dimx,dimy,dimz)
    implicit none
      character(len=*) :: name
      integer :: dimx,dimy,dimz
      integer :: TabDim(4)
      integer :: status
      
      
      NbField=NbField+1
      FieldName(NbField)=TRIM(ADJUSTL(name))
      FieldIndex(NbField)=1
      
      
      status = nf90_create(TRIM(ADJUSTL(name))//'.nc', nf90_clobber, FieldId(NbField))
      status = nf90_def_dim(FieldId(NbField),'X',dimx,TabDim(1))
      status = nf90_def_dim(FieldId(NbField),'Y',dimy,TabDim(2))
      status = nf90_def_dim(FieldId(NbField),'Z',dimz,TabDim(3))
      status = nf90_def_dim(FieldId(NbField),'iter',nf90_unlimited,TabDim(4))
      status = nf90_def_var(FieldId(NbField),FieldName(NbField),nf90_double,TabDim,FieldVarId(NbField))
      status = nf90_enddef(FieldId(NbField))

    end subroutine CreateNewField
    
    
    
  subroutine write_field1D(name,Field)
    implicit none
  
    integer, parameter :: MaxDim=1
    character(len=*)   :: name
    real, dimension(:) :: Field
    real, dimension(:),allocatable :: New_Field
    character(len=20) :: str
    integer, dimension(MaxDim) :: Dim
    integer :: i,nb
    integer, parameter :: id=10
    integer, parameter :: NbCol=4
    integer :: ColumnSize 
    integer :: pos
    character(len=255) :: form
    character(len=255) :: MaxLen
    
    
    open(unit=id,file=name//'.field',form='formatted',status='replace')
    write (id,'("----- Field '//name//'",//)')
    Dim=shape(Field)
    MaxLen=num2str(len(trim(num2str(Dim(1)))))
    ColumnSize=20+6+3+len(trim(num2str(Dim(1))))
    Nb=0
    Pos=2
    do i=1,Dim(1)
      nb=nb+1
      
      if (MOD(nb,NbCol)==0) then
        form='(t'//trim(num2str(pos))// ',i'//trim(MaxLen) //'," ---> ",g22.16,/)'
        Pos=2
      else
        form='(t'//trim(num2str(pos))// ',i'//trim(MaxLen) //'," ---> ",g22.16," | ",)'
        Pos=Pos+ColumnSize
      endif
      write (id,form,advance='no') i,Field(i)
    enddo
     
    close(id)

  end subroutine write_field1D

  subroutine write_field2D(name,Field)
    implicit none
  
    integer, parameter :: MaxDim=2
    character(len=*)   :: name
    real, dimension(:,:) :: Field
    real, dimension(:,:),allocatable :: New_Field
    character(len=20) :: str
    integer, dimension(MaxDim) :: Dim
    integer :: i,j,nb
    integer, parameter :: id=10
    integer, parameter :: NbCol=4
    integer :: ColumnSize 
    integer :: pos,offset
    character(len=255) :: form
    character(len=255) :: spacing
    
    open(unit=id,file=name//'.field',form='formatted',status='replace')
    write (id,'("----- Field '//name//'",//)')
    
    Dim=shape(Field)
    offset=len(trim(num2str(Dim(1))))+len(trim(num2str(Dim(2))))+3
    ColumnSize=20+6+3+offset

    spacing='(t2,"'//repeat('-',ColumnSize*NbCol)//'")'
    
    do i=1,Dim(2)
      nb=0
      Pos=2
      do j=1,Dim(1)
        nb=nb+1
      
        if (MOD(nb,NbCol)==0) then
          form='(t'//trim(num2str(pos))//            &
               ',"('//trim(num2str(j))//','          &
                    //trim(num2str(i))//')",t'       & 
                    //trim(num2str(pos+offset))     &    
                    //'," ---> ",g22.16,/)'
          Pos=2
        else
          form='(t'//trim(num2str(pos))//            &
               ',"('//trim(num2str(j))//','          &
                    //trim(num2str(i))//')",t'       & 
                    //trim(num2str(pos+offset))     &    
                    //'," ---> ",g22.16," | ")'
          Pos=Pos+ColumnSize
        endif
        write (id,form,advance='no') Field(j,i)
      enddo
      if (MOD(nb,NbCol)==0) then
        write (id,spacing)
      else
        write (id,'("")')
        write (id,spacing)
      endif
    enddo
     
  end subroutine write_field2D
  
  subroutine write_field3D(name,Field)
    implicit none
  
    integer, parameter :: MaxDim=3
    character(len=*)   :: name
    real, dimension(:,:,:) :: Field
    real, dimension(:,:,:),allocatable :: New_Field
    integer, dimension(MaxDim) :: Dim
    integer :: i,j,k,nb
    integer, parameter :: id=10
    integer, parameter :: NbCol=4
    integer :: ColumnSize 
    integer :: pos,offset
    character(len=255) :: form
    character(len=255) :: spacing

    open(unit=id,file=name//'.field',form='formatted',status='replace')
    write (id,'("----- Field '//name//'"//)')
    
    Dim=shape(Field)
    offset=len(trim(num2str(Dim(1))))+len(trim(num2str(Dim(2))))+len(trim(num2str(Dim(3))))+4
    ColumnSize=22+6+3+offset

!    open(unit=id,file=name,form=formatted
   
    spacing='(t2,"'//repeat('-',ColumnSize*NbCol)//'")'
    
    do i=1,Dim(3)
    
      do j=1,Dim(2)
        nb=0
        Pos=2
        
        do k=1,Dim(1)
        nb=nb+1
      
          if (MOD(nb,NbCol)==0) then
            form='(t'//trim(num2str(pos))//            &
                 ',"('//trim(num2str(k))//','          &
                      //trim(num2str(j))//','          &
                      //trim(num2str(i))//')",t'       & 
                      //trim(num2str(pos+offset))      &    
                      //'," ---> ",g22.16,/)'
           Pos=2
          else
            form='(t'//trim(num2str(pos))//            &
                 ',"('//trim(num2str(k))//','          &
                      //trim(num2str(j))//','          &
                      //trim(num2str(i))//')",t'       & 
                      //trim(num2str(pos+offset))      &    
                      //'," ---> ",g22.16," | ")'
! d�pent de l'impl�mention, sur compaq, c'est necessaire
!            Pos=Pos+ColumnSize
          endif
          write (id,form,advance='no') Field(k,j,i)
        enddo
        if (MOD(nb,NbCol)==0) then
          write (id,spacing)
        else
          write (id,'("")')
          write (id,spacing)
        endif
      enddo
      write (id,spacing)
    enddo
    
    close(id)
  
  end subroutine write_field3D

end module write_field