problem when first running upwelling test

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
shifei
Posts: 30
Joined: Thu Aug 01, 2013 3:11 pm
Location: Ocean University of China

problem when first running upwelling test

#1 Unread post by shifei »

Hi
I'm trying to run upwelling test and I get some troubles, like:

rm -f -r core *.ipo /Projects/upwelling/Build /home/fei/make_macros.mk
In file included from Compilers/make_macros.h:16:0:
Compilers/../ROMS/Include/cppdefs.h:625:22: fatal error: /Projects/upwelling/upwelling.h: No such file or directory
compilation terminated.
makefile:238: INCLUDING FILE /home/fei/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
cp -f /home/fei/netcdf/include/netcdf.mod /Projects/upwelling/Build
cp -f /home/fei/netcdf/include/typesizes.mod /Projects/upwelling/Build
./ROMS/Bin/sfmakedepend --cpp --fext=f90 --file=- --objdir=/Projects/upwelling/Build -DROMS_HEADER="upwelling.h" -I ROMS/Include -I /Projects/upwelling -I ROMS/Nonlinear -I ROMS/Nonlinear/Biology -I ROMS/Nonlinear/Sediment -I ROMS/Utility -I ROMS/Drivers -I ROMS/Functionals -I /Projects/upwelling -I Master -I Compilers --silent --moddir /Projects/upwelling/Build ROMS/Nonlinear/bbl.F ROMS/Nonlinear/bc_2d.F ROMS/Nonlinear/bc_3d.F ROMS/Nonlinear/bc_bry2d.F ROMS/Nonlinear/bc_bry3d.F ROMS/Nonlinear/bulk_flux.F ROMS/Nonlinear/bvf_mix.F ROMS/Nonlinear/conv_2d.F ROMS/Nonlinear/conv_3d.F ROMS/Nonlinear/conv_bry2d.F ROMS/Nonlinear/conv_bry3d.F ROMS/Nonlinear/diag.F ROMS/Nonlinear/exchange_2d.F ROMS/Nonlinear/exchange_3d.F ROMS/Nonlinear/forcing.F ROMS/Nonlinear/frc_adjust.F ROMS/Nonlinear/get_data.F ROMS/Nonlinear/get_idata.F ROMS/Nonlinear/gls_corstep.F ROMS/Nonlinear/gls_prestep.F ROMS/Nonlinear/hmixing.F ROMS/Nonlinear/ini_fields.F ROMS/Nonlinear/initial.F ROMS/Nonlinear/interp_floats.F ROMS/Nonlinear/lmd_bkpp.F ROMS/Nonlinear/lmd_skpp.F ROMS/Nonlinear/lmd_swfrac.F ROMS/Nonlinear/lmd_vmix.F ROMS/Nonlinear/main2d.F ROMS/Nonlinear/main3d.F ROMS/Nonlinear/mpdata_adiff.F ROMS/Nonlinear/my25_corstep.F ROMS/Nonlinear/my25_prestep.F ROMS/Nonlinear/nesting.F ROMS/Nonlinear/obc_adjust.F ROMS/Nonlinear/obc_volcons.F ROMS/Nonlinear/omega.F ROMS/Nonlinear/output.F ROMS/Nonlinear/pre_step3d.F ROMS/Nonlinear/prsgrd.F ROMS/Nonlinear/radiation_stress.F ROMS/Nonlinear/rho_eos.F ROMS/Nonlinear/rhs3d.F ROMS/Nonlinear/set_avg.F ROMS/Nonlinear/set_data.F ROMS/Nonlinear/set_depth.F ROMS/Nonlinear/set_massflux.F ROMS/Nonlinear/set_tides.F ROMS/Nonlinear/set_vbc.F ROMS/Nonlinear/set_zeta.F ROMS/Nonlinear/step2d.F ROMS/Nonlinear/step3d_t.F ROMS/Nonlinear/step3d_uv.F ROMS/Nonlinear/step_floats.F ROMS/Nonlinear/t3dbc_im.F ROMS/Nonlinear/t3dmix.F ROMS/Nonlinear/tkebc_im.F ROMS/Nonlinear/u2dbc_im.F ROMS/Nonlinear/u3dbc_im.F ROMS/Nonlinear/uv3dmix.F ROMS/Nonlinear/v2dbc_im.F ROMS/Nonlinear/v3dbc_im.F ROMS/Nonlinear/vwalk_floats.F ROMS/Nonlinear/wetdry.F ROMS/Nonlinear/wvelocity.F ROMS/Nonlinear/zetabc.F ROMS/Nonlinear/Biology/biology.F ROMS/Nonlinear/Biology/biology_floats.F ROMS/Nonlinear/Sediment/sed_bed.F ROMS/Nonlinear/Sediment/sed_bedload.F ROMS/Nonlinear/Sediment/sed_fluxes.F ROMS/Nonlinear/Sediment/sediment.F ROMS/Nonlinear/Sediment/sed_settling.F ROMS/Nonlinear/Sediment/sed_surface.F ROMS/Functionals/analytical.F ROMS/Utility/abort.F ROMS/Utility/array_modes.F ROMS/Utility/back_cost.F ROMS/Utility/cgradient.F ROMS/Utility/checkadj.F ROMS/Utility/checkdefs.F ROMS/Utility/checkerror.F ROMS/Utility/checkvars.F ROMS/Utility/close_io.F ROMS/Utility/congrad.F ROMS/Utility/convolve.F ROMS/Utility/cost_grad.F ROMS/Utility/def_avg.F ROMS/Utility/def_diags.F ROMS/Utility/def_dim.F ROMS/Utility/def_error.F ROMS/Utility/def_floats.F ROMS/Utility/def_gst.F ROMS/Utility/def_hessian.F ROMS/Utility/def_his.F ROMS/Utility/def_impulse.F ROMS/Utility/def_info.F ROMS/Utility/def_ini.F ROMS/Utility/def_lanczos.F ROMS/Utility/def_mod.F ROMS/Utility/def_norm.F ROMS/Utility/def_rst.F ROMS/Utility/def_station.F ROMS/Utility/def_tides.F ROMS/Utility/def_var.F ROMS/Utility/distribute.F ROMS/Utility/dotproduct.F ROMS/Utility/erf.F ROMS/Utility/extract_obs.F ROMS/Utility/extract_sta.F ROMS/Utility/frc_weak.F ROMS/Utility/gasdev.F ROMS/Utility/get_2dfld.F ROMS/Utility/get_2dfldr.F ROMS/Utility/get_3dfld.F ROMS/Utility/get_3dfldr.F ROMS/Utility/get_bounds.F ROMS/Utility/get_cycle.F ROMS/Utility/get_date.F ROMS/Utility/get_grid.F ROMS/Utility/get_gst.F ROMS/Utility/get_ngfld.F ROMS/Utility/get_ngfldr.F ROMS/Utility/get_state.F ROMS/Utility/get_varcoords.F ROMS/Utility/grid_coords.F ROMS/Utility/ini_adjust.F ROMS/Utility/ini_hmixcoef.F ROMS/Utility/ini_lanczos.F ROMS/Utility/inner2state.F ROMS/Utility/inp_par.F ROMS/Utility/inquire.F ROMS/Utility/interpolate.F ROMS/Utility/lbc.F ROMS/Utility/lubksb.F ROMS/Utility/ludcmp.F ROMS/Utility/metrics.F ROMS/Utility/mp_exchange.F ROMS/Utility/mp_routines.F ROMS/Utility/nf_fread2d_bry.F ROMS/Utility/nf_fread2d.F ROMS/Utility/nf_fread3d_bry.F ROMS/Utility/nf_fread3d.F ROMS/Utility/nf_fread4d.F ROMS/Utility/nf_fwrite2d_bry.F ROMS/Utility/nf_fwrite2d.F ROMS/Utility/nf_fwrite3d_bry.F ROMS/Utility/nf_fwrite3d.F ROMS/Utility/nf_fwrite4d.F ROMS/Utility/normalization.F ROMS/Utility/nrutil.F ROMS/Utility/ntimestep.F ROMS/Utility/obs_cost.F ROMS/Utility/obs_depth.F ROMS/Utility/obs_initial.F ROMS/Utility/obs_read.F ROMS/Utility/obs_write.F ROMS/Utility/packing.F ROMS/Utility/posterior.F ROMS/Utility/posterior_var.F ROMS/Utility/ran1.F ROMS/Utility/random_ic.F ROMS/Utility/ran_state.F ROMS/Utility/read_asspar.F ROMS/Utility/read_biopar.F ROMS/Utility/read_couplepar.F ROMS/Utility/read_fltbiopar.F ROMS/Utility/read_fltpar.F ROMS/Utility/read_phypar.F ROMS/Utility/read_sedpar.F ROMS/Utility/read_stapar.F ROMS/Utility/regrid.F ROMS/Utility/rep_matrix.F ROMS/Utility/set_2dfld.F ROMS/Utility/set_2dfldr.F ROMS/Utility/set_3dfld.F ROMS/Utility/set_3dfldr.F ROMS/Utility/set_contact.F ROMS/Utility/set_diags.F ROMS/Utility/set_masks.F ROMS/Utility/set_ngfld.F ROMS/Utility/set_ngfldr.F ROMS/Utility/set_scoord.F ROMS/Utility/set_weights.F ROMS/Utility/shapiro.F ROMS/Utility/sqlq.F ROMS/Utility/state_addition.F ROMS/Utility/state_copy.F ROMS/Utility/state_dotprod.F ROMS/Utility/state_initialize.F ROMS/Utility/state_product.F ROMS/Utility/state_scale.F ROMS/Utility/stats_modobs.F ROMS/Utility/stiffness.F ROMS/Utility/strings.F ROMS/Utility/sum_grad.F ROMS/Utility/timers.F ROMS/Utility/uv_rotate.F ROMS/Utility/vorticity.F ROMS/Utility/white_noise.F ROMS/Utility/wpoints.F ROMS/Utility/wrt_avg.F ROMS/Utility/wrt_diags.F ROMS/Utility/wrt_error.F ROMS/Utility/wrt_floats.F ROMS/Utility/wrt_gst.F ROMS/Utility/wrt_hessian.F ROMS/Utility/wrt_his.F ROMS/Utility/wrt_impulse.F ROMS/Utility/wrt_info.F ROMS/Utility/wrt_ini.F ROMS/Utility/wrt_rst.F ROMS/Utility/wrt_station.F ROMS/Utility/wrt_tides.F ROMS/Utility/zeta_balance.F ROMS/Modules/mod_arrays.F ROMS/Modules/mod_average.F ROMS/Modules/mod_bbl.F ROMS/Modules/mod_behavior.F ROMS/Modules/mod_biology.F ROMS/Modules/mod_boundary.F ROMS/Modules/mod_clima.F ROMS/Modules/mod_coupler.F ROMS/Modules/mod_coupling.F ROMS/Modules/mod_diags.F ROMS/Modules/mod_eclight.F ROMS/Modules/mod_eoscoef.F ROMS/Modules/mod_floats.F ROMS/Modules/mod_forces.F ROMS/Modules/mod_fourdvar.F ROMS/Modules/mod_grid.F ROMS/Modules/mod_iounits.F ROMS/Modules/mod_kinds.F ROMS/Modules/mod_mixing.F ROMS/Modules/mod_ncparam.F ROMS/Modules/mod_nesting.F ROMS/Modules/mod_netcdf.F ROMS/Modules/mod_ocean.F ROMS/Modules/mod_parallel.F ROMS/Modules/mod_param.F ROMS/Modules/mod_scalars.F ROMS/Modules/mod_sedbed.F ROMS/Modules/mod_sediment.F ROMS/Modules/mod_sources.F ROMS/Modules/mod_stepping.F ROMS/Modules/mod_storage.F ROMS/Modules/mod_strings.F ROMS/Modules/mod_tides.F Master/esmf_roms.F Master/master.F Master/ocean_control.F Master/ocean_coupler.F Master/propagator.F Master/roms_export.F Master/roms_import.F > /Projects/upwelling/Build/MakeDepend
cp -p /home/fei/make_macros.mk /Projects/upwelling/Build
In file included from Compilers/make_macros.h:16:0:
Compilers/../ROMS/Include/cppdefs.h:625:22: fatal error: /Projects/upwelling/upwelling.h: No such file or directory
compilation terminated.
makefile:234: INCLUDING FILE /Projects/upwelling/Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/home/fei/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/Projects/upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/Projects/upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="687M"' -IROMS/Include -I/Projects/upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/Projects/upwelling -IMaster -ICompilers -D'HEADER_DIR="/Projects/upwelling"' ROMS/Utility/abort.F > /Projects/upwelling/Build/abort.f90
In file included from ROMS/Utility/abort.F:2:0:
ROMS/Include/cppdefs.h:625:0: fatal error: /Projects/upwelling/upwelling.h: No such file or directory
compilation terminated.
make: *** [/Projects/upwelling/Build/abort.f90] Error 1

Who know the solution. Thanks in advance!

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem when first running upwelling test

#2 Unread post by kate »

Compilers/../ROMS/Include/cppdefs.h:625:22: fatal error: /Projects/upwelling/upwelling.h: No such file or directory
Are you using build.bash or the raw makefile? Where are you compiling from relative you your source code? There is something wrong with your MY_HEADER_DIR value. If using build.bash, this comes from MY_ROOT_DIR and MY_PROJECT_DIR. How do you have them set?

shifei
Posts: 30
Joined: Thu Aug 01, 2013 3:11 pm
Location: Ocean University of China

Re: problem when first running upwelling test

#3 Unread post by shifei »

Thanks kate for your answer

I'm using build.bash and the raw makefile. My source code is at /home/fei/roms/trunk.
MY_ROOT_DIR and MY_PROJECT_DIR as follows:

Code: Select all

export        MY_ROOT_DIR=/home/fei/
export     MY_PROJECT_DIR=${MY_PROJECT_DIR}/Projects/upwelling
In file included from Compilers/make_macros.h:16:0:
Compilers/../ROMS/Include/cppdefs.h:625:22: fatal error: /Projects/upwelling/upwelling.h: No such file or directory
There seems to be wrong in make_macros.h. Should I configure it?

Thanks again

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem when first running upwelling test

#4 Unread post by kate »

shifei wrote:I'm using build.bash and the raw makefile. My source code is at /home/fei/roms/trunk.
MY_ROOT_DIR and MY_PROJECT_DIR as follows:

Code: Select all

export        MY_ROOT_DIR=/home/fei/
export     MY_PROJECT_DIR=${MY_PROJECT_DIR}/Projects/upwelling
This last line is adding "/Projects/upwelling" to the previous definition of MY_PROJECT_DIR. It seems that it's previous definition was a null string. Did you mean:

Code: Select all

export     MY_PROJECT_DIR=${MY_ROOT_DIR}/Projects/upwelling
and perhaps:

Code: Select all

export        MY_ROOT_DIR=/home/fei/roms/trunk

shifei
Posts: 30
Joined: Thu Aug 01, 2013 3:11 pm
Location: Ocean University of China

Re: problem when first running upwelling test

#5 Unread post by shifei »

Hi kate:
I'm sorry. I'm so careless. I modify the MY_PROJECT_DIR:

Code: Select all

MY_PROJECT_DIR=${MY_ROOT_DIR}/Projects/upwelling
After I run again, I got the problem as follow:

Code: Select all

rm -f -r core *.ipo /home/fei//Projects/upwelling/Build /home/fei/make_macros.mk
makefile:238: INCLUDING FILE /home/fei/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
cp -f /home/fei/netcdf/include/netcdf.mod /home/fei//Projects/upwelling/Build
cp -f /home/fei/netcdf/include/typesizes.mod /home/fei//Projects/upwelling/Build
./ROMS/Bin/sfmakedepend --cpp --fext=f90 --file=- --objdir=/home/fei//Projects/upwelling/Build -DROMS_HEADER="upwelling.h" -I ROMS/Include -I /home/fei//Projects/upwelling -I ROMS/Nonlinear -I ROMS/Nonlinear/Biology -I ROMS/Nonlinear/Sediment -I ROMS/Utility -I ROMS/Drivers -I ROMS/Functionals -I /home/fei//Projects/upwelling -I Master -I Compilers --silent --moddir /home/fei//Projects/upwelling/Build  ROMS/Nonlinear/bbl.F ROMS/Nonlinear/bc_2d.F ROMS/Nonlinear/bc_3d.F ROMS/Nonlinear/bc_bry2d.F ROMS/Nonlinear/bc_bry3d.F ROMS/Nonlinear/bulk_flux.F ROMS/Nonlinear/bvf_mix.F ROMS/Nonlinear/conv_2d.F ROMS/Nonlinear/conv_3d.F ROMS/Nonlinear/conv_bry2d.F ROMS/Nonlinear/conv_bry3d.F ROMS/Nonlinear/diag.F ROMS/Nonlinear/exchange_2d.F ROMS/Nonlinear/exchange_3d.F ROMS/Nonlinear/forcing.F ROMS/Nonlinear/frc_adjust.F ROMS/Nonlinear/get_data.F ROMS/Nonlinear/get_idata.F ROMS/Nonlinear/gls_corstep.F ROMS/Nonlinear/gls_prestep.F ROMS/Nonlinear/hmixing.F ROMS/Nonlinear/ini_fields.F ROMS/Nonlinear/initial.F ROMS/Nonlinear/interp_floats.F ROMS/Nonlinear/lmd_bkpp.F ROMS/Nonlinear/lmd_skpp.F ROMS/Nonlinear/lmd_swfrac.F ROMS/Nonlinear/lmd_vmix.F ROMS/Nonlinear/main2d.F ROMS/Nonlinear/main3d.F ROMS/Nonlinear/mpdata_adiff.F ROMS/Nonlinear/my25_corstep.F ROMS/Nonlinear/my25_prestep.F ROMS/Nonlinear/nesting.F ROMS/Nonlinear/obc_adjust.F ROMS/Nonlinear/obc_volcons.F ROMS/Nonlinear/omega.F ROMS/Nonlinear/output.F ROMS/Nonlinear/pre_step3d.F ROMS/Nonlinear/prsgrd.F ROMS/Nonlinear/radiation_stress.F ROMS/Nonlinear/rho_eos.F ROMS/Nonlinear/rhs3d.F ROMS/Nonlinear/set_avg.F ROMS/Nonlinear/set_data.F ROMS/Nonlinear/set_depth.F ROMS/Nonlinear/set_massflux.F ROMS/Nonlinear/set_tides.F ROMS/Nonlinear/set_vbc.F ROMS/Nonlinear/set_zeta.F ROMS/Nonlinear/step2d.F ROMS/Nonlinear/step3d_t.F ROMS/Nonlinear/step3d_uv.F ROMS/Nonlinear/step_floats.F ROMS/Nonlinear/t3dbc_im.F ROMS/Nonlinear/t3dmix.F ROMS/Nonlinear/tkebc_im.F ROMS/Nonlinear/u2dbc_im.F ROMS/Nonlinear/u3dbc_im.F ROMS/Nonlinear/uv3dmix.F ROMS/Nonlinear/v2dbc_im.F ROMS/Nonlinear/v3dbc_im.F ROMS/Nonlinear/vwalk_floats.F ROMS/Nonlinear/wetdry.F ROMS/Nonlinear/wvelocity.F ROMS/Nonlinear/zetabc.F ROMS/Nonlinear/Biology/biology.F ROMS/Nonlinear/Biology/biology_floats.F ROMS/Nonlinear/Sediment/sed_bed.F ROMS/Nonlinear/Sediment/sed_bedload.F ROMS/Nonlinear/Sediment/sed_fluxes.F ROMS/Nonlinear/Sediment/sediment.F ROMS/Nonlinear/Sediment/sed_settling.F ROMS/Nonlinear/Sediment/sed_surface.F ROMS/Functionals/analytical.F ROMS/Utility/abort.F ROMS/Utility/array_modes.F ROMS/Utility/back_cost.F ROMS/Utility/cgradient.F ROMS/Utility/checkadj.F ROMS/Utility/checkdefs.F ROMS/Utility/checkerror.F ROMS/Utility/checkvars.F ROMS/Utility/close_io.F ROMS/Utility/congrad.F ROMS/Utility/convolve.F ROMS/Utility/cost_grad.F ROMS/Utility/def_avg.F ROMS/Utility/def_diags.F ROMS/Utility/def_dim.F ROMS/Utility/def_error.F ROMS/Utility/def_floats.F ROMS/Utility/def_gst.F ROMS/Utility/def_hessian.F ROMS/Utility/def_his.F ROMS/Utility/def_impulse.F ROMS/Utility/def_info.F ROMS/Utility/def_ini.F ROMS/Utility/def_lanczos.F ROMS/Utility/def_mod.F ROMS/Utility/def_norm.F ROMS/Utility/def_rst.F ROMS/Utility/def_station.F ROMS/Utility/def_tides.F ROMS/Utility/def_var.F ROMS/Utility/distribute.F ROMS/Utility/dotproduct.F ROMS/Utility/erf.F ROMS/Utility/extract_obs.F ROMS/Utility/extract_sta.F ROMS/Utility/frc_weak.F ROMS/Utility/gasdev.F ROMS/Utility/get_2dfld.F ROMS/Utility/get_2dfldr.F ROMS/Utility/get_3dfld.F ROMS/Utility/get_3dfldr.F ROMS/Utility/get_bounds.F ROMS/Utility/get_cycle.F ROMS/Utility/get_date.F ROMS/Utility/get_grid.F ROMS/Utility/get_gst.F ROMS/Utility/get_ngfld.F ROMS/Utility/get_ngfldr.F ROMS/Utility/get_state.F ROMS/Utility/get_varcoords.F ROMS/Utility/grid_coords.F ROMS/Utility/ini_adjust.F ROMS/Utility/ini_hmixcoef.F ROMS/Utility/ini_lanczos.F ROMS/Utility/inner2state.F ROMS/Utility/inp_par.F ROMS/Utility/inquire.F ROMS/Utility/interpolate.F ROMS/Utility/lbc.F ROMS/Utility/lubksb.F ROMS/Utility/ludcmp.F ROMS/Utility/metrics.F ROMS/Utility/mp_exchange.F ROMS/Utility/mp_routines.F ROMS/Utility/nf_fread2d_bry.F ROMS/Utility/nf_fread2d.F ROMS/Utility/nf_fread3d_bry.F ROMS/Utility/nf_fread3d.F ROMS/Utility/nf_fread4d.F ROMS/Utility/nf_fwrite2d_bry.F ROMS/Utility/nf_fwrite2d.F ROMS/Utility/nf_fwrite3d_bry.F ROMS/Utility/nf_fwrite3d.F ROMS/Utility/nf_fwrite4d.F ROMS/Utility/normalization.F ROMS/Utility/nrutil.F ROMS/Utility/ntimestep.F ROMS/Utility/obs_cost.F ROMS/Utility/obs_depth.F ROMS/Utility/obs_initial.F ROMS/Utility/obs_read.F ROMS/Utility/obs_write.F ROMS/Utility/packing.F ROMS/Utility/posterior.F ROMS/Utility/posterior_var.F ROMS/Utility/ran1.F ROMS/Utility/random_ic.F ROMS/Utility/ran_state.F ROMS/Utility/read_asspar.F ROMS/Utility/read_biopar.F ROMS/Utility/read_couplepar.F ROMS/Utility/read_fltbiopar.F ROMS/Utility/read_fltpar.F ROMS/Utility/read_phypar.F ROMS/Utility/read_sedpar.F ROMS/Utility/read_stapar.F ROMS/Utility/regrid.F ROMS/Utility/rep_matrix.F ROMS/Utility/set_2dfld.F ROMS/Utility/set_2dfldr.F ROMS/Utility/set_3dfld.F ROMS/Utility/set_3dfldr.F ROMS/Utility/set_contact.F ROMS/Utility/set_diags.F ROMS/Utility/set_masks.F ROMS/Utility/set_ngfld.F ROMS/Utility/set_ngfldr.F ROMS/Utility/set_scoord.F ROMS/Utility/set_weights.F ROMS/Utility/shapiro.F ROMS/Utility/sqlq.F ROMS/Utility/state_addition.F ROMS/Utility/state_copy.F ROMS/Utility/state_dotprod.F ROMS/Utility/state_initialize.F ROMS/Utility/state_product.F ROMS/Utility/state_scale.F ROMS/Utility/stats_modobs.F ROMS/Utility/stiffness.F ROMS/Utility/strings.F ROMS/Utility/sum_grad.F ROMS/Utility/timers.F ROMS/Utility/uv_rotate.F ROMS/Utility/vorticity.F ROMS/Utility/white_noise.F ROMS/Utility/wpoints.F ROMS/Utility/wrt_avg.F ROMS/Utility/wrt_diags.F ROMS/Utility/wrt_error.F ROMS/Utility/wrt_floats.F ROMS/Utility/wrt_gst.F ROMS/Utility/wrt_hessian.F ROMS/Utility/wrt_his.F ROMS/Utility/wrt_impulse.F ROMS/Utility/wrt_info.F ROMS/Utility/wrt_ini.F ROMS/Utility/wrt_rst.F ROMS/Utility/wrt_station.F ROMS/Utility/wrt_tides.F ROMS/Utility/zeta_balance.F ROMS/Modules/mod_arrays.F ROMS/Modules/mod_average.F ROMS/Modules/mod_bbl.F ROMS/Modules/mod_behavior.F ROMS/Modules/mod_biology.F ROMS/Modules/mod_boundary.F ROMS/Modules/mod_clima.F ROMS/Modules/mod_coupler.F ROMS/Modules/mod_coupling.F ROMS/Modules/mod_diags.F ROMS/Modules/mod_eclight.F ROMS/Modules/mod_eoscoef.F ROMS/Modules/mod_floats.F ROMS/Modules/mod_forces.F ROMS/Modules/mod_fourdvar.F ROMS/Modules/mod_grid.F ROMS/Modules/mod_iounits.F ROMS/Modules/mod_kinds.F ROMS/Modules/mod_mixing.F ROMS/Modules/mod_ncparam.F ROMS/Modules/mod_nesting.F ROMS/Modules/mod_netcdf.F ROMS/Modules/mod_ocean.F ROMS/Modules/mod_parallel.F ROMS/Modules/mod_param.F ROMS/Modules/mod_scalars.F ROMS/Modules/mod_sedbed.F ROMS/Modules/mod_sediment.F ROMS/Modules/mod_sources.F ROMS/Modules/mod_stepping.F ROMS/Modules/mod_storage.F ROMS/Modules/mod_strings.F ROMS/Modules/mod_tides.F Master/esmf_roms.F Master/master.F Master/ocean_control.F Master/ocean_coupler.F Master/propagator.F Master/roms_export.F Master/roms_import.F > /home/fei//Projects/upwelling/Build/MakeDepend
cp -p /home/fei/make_macros.mk /home/fei//Projects/upwelling/Build
makefile:234: INCLUDING FILE /home/fei//Projects/upwelling/Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/home/fei/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/fei//Projects/upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/fei//Projects/upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="687M"' -IROMS/Include -I/home/fei//Projects/upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/fei//Projects/upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/fei//Projects/upwelling"'  ROMS/Utility/abort.F > /home/fei//Projects/upwelling/Build/abort.f90
ROMS/Bin/cpp_clean /home/fei//Projects/upwelling/Build/abort.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/home/fei/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/fei//Projects/upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/fei//Projects/upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="687M"' -IROMS/Include -I/home/fei//Projects/upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/fei//Projects/upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/fei//Projects/upwelling"'  Master/ocean_control.F > /home/fei//Projects/upwelling/Build/ocean_control.f90
ROMS/Bin/cpp_clean /home/fei//Projects/upwelling/Build/ocean_control.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/home/fei/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/fei//Projects/upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/fei//Projects/upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="687M"' -IROMS/Include -I/home/fei//Projects/upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/fei//Projects/upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/fei//Projects/upwelling"'  ROMS/Functionals/analytical.F > /home/fei//Projects/upwelling/Build/analytical.f90
ROMS/Bin/cpp_clean /home/fei//Projects/upwelling/Build/analytical.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/home/fei/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/fei//Projects/upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/fei//Projects/upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="687M"' -IROMS/Include -I/home/fei//Projects/upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/fei//Projects/upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/fei//Projects/upwelling"'  ROMS/Utility/distribute.F > /home/fei//Projects/upwelling/Build/distribute.f90
ROMS/Bin/cpp_clean /home/fei//Projects/upwelling/Build/distribute.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/home/fei/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/fei//Projects/upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/fei//Projects/upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="687M"' -IROMS/Include -I/home/fei//Projects/upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/fei//Projects/upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/fei//Projects/upwelling"'  ROMS/Modules/mod_iounits.F > /home/fei//Projects/upwelling/Build/mod_iounits.f90
ROMS/Bin/cpp_clean /home/fei//Projects/upwelling/Build/mod_iounits.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/home/fei/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/fei//Projects/upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/fei//Projects/upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="687M"' -IROMS/Include -I/home/fei//Projects/upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/fei//Projects/upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/fei//Projects/upwelling"'  ROMS/Modules/mod_param.F > /home/fei//Projects/upwelling/Build/mod_param.f90
ROMS/Bin/cpp_clean /home/fei//Projects/upwelling/Build/mod_param.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/home/fei/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/fei//Projects/upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/fei//Projects/upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="687M"' -IROMS/Include -I/home/fei//Projects/upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/fei//Projects/upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/fei//Projects/upwelling"'  ROMS/Modules/mod_kinds.F > /home/fei//Projects/upwelling/Build/mod_kinds.f90
ROMS/Bin/cpp_clean /home/fei//Projects/upwelling/Build/mod_kinds.f90
cd /home/fei//Projects/upwelling/Build;  -c -heap-arrays -fp-model precise -g -check bounds -traceback -check uninit -warn interfaces,nouncalled -gen-interfaces -free mod_kinds.f90
/bin/sh: 1: -c: not found
make: *** [/home/fei//Projects/upwelling/Build/mod_kinds.o] Error 127
What's the meaning of the last line :?:

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem when first running upwelling test

#6 Unread post by kate »

This one has made it into the FAQ:

Code: Select all

cd Build; -c -O3 mod_kinds.f90
/bin/sh: -c: not found
The command:
FC := $(shell which ${FC})
in the Compilers/xxx-xxx.mk file has failed to find the compiler you specified, setting FC to the null string. You need to find out which compiler you were asking it to look for and to make sure it is in your path. If the flag USE_MPIF90 is set, it will be looking for "mpif90". What do you get from the command "which mpif90"? If you are trying for a serial run first, what does "which gfortran" give you?

shifei
Posts: 30
Joined: Thu Aug 01, 2013 3:11 pm
Location: Ocean University of China

Re: problem when first running upwelling test

#7 Unread post by shifei »

Hi kate,
I got nothing from the command 'which mpif90 which gfortran'

I use ifort compiler. After I put 'which ifort',I got '/opt/intel/composer_xe_2013_sp1.0.080/bin/intel64/ifort'.

I tried to set FC :=$(/opt/intel/composer_xe_2013_sp1.0.080/bin/intel64/ifort).
The problem is still unsolved. What should I configure FC?

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem when first running upwelling test

#8 Unread post by kate »

Assuming you are on linux, you want to set FORT to ifort, which will include the Compilers/Linux-ifort.mk file. There, it sets FC to ifort, then:

Code: Select all

ifdef USE_MPI
         CPPFLAGS += -DMPI
 ifdef USE_MPIF90
               FC := mpif90
 else
             LIBS += -lfmpi-pgi -lmpi-pgi
 endif
endif
Then later, it does:

Code: Select all

               FC := $(shell which ${FC})
So, how are you setting USE_MPI and USE_MPIF90? Where did you set FC to its full path?

shifei
Posts: 30
Joined: Thu Aug 01, 2013 3:11 pm
Location: Ocean University of China

Re: problem when first running upwelling test

#9 Unread post by shifei »

Hi kate,
I am on linux, I want to set FORT to ifort.
In Linux-ifort.mk file, I didn't set USE_MPI and USE_MPIF90.
I have read the FAQ, but I don't how to set them.
how can I set the USE_MPI, USE_MPIF90 and the FC to its full path.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem when first running upwelling test

#10 Unread post by kate »

What happens if you set FC to the full path, then comment out this line:

Code: Select all

 FC := $(shell which ${FC})

shifei
Posts: 30
Joined: Thu Aug 01, 2013 3:11 pm
Location: Ocean University of China

Re: problem when first running upwelling test

#11 Unread post by shifei »

Kate, I'm sorry for my not reply, because I was on a business trip several days ago.
In the following code

Code: Select all

ifdef USE_MPI
         CPPFLAGS += -DMPI
 ifdef USE_MPIF90
               FC := /opt/intel/composer_xe_2013_sp1.0.080/bin/intel64/ifort
               LD := $(FC)
 else
             LIBS += -lfmpi-pgi -lmpi-pgi

If I set FC

Code: Select all

FC := /home/fei/local/openmpi/bin/mpif90
I will get

Code: Select all

ROMS/Bin/cpp_clean /home/fei//Projects/upwelling/Build/mod_kinds.f90
cd /home/fei//Projects/upwelling/Build; ifort -c -heap-arrays -fp-model precise -openmp -fpp -g -check bounds -traceback -check uninit -warn interfaces,nouncalled -gen-interfaces -free mod_kinds.f90
/bin/sh: 1: ifort: not found
make: *** [/home/fei//Projects/upwelling/Build/mod_kinds.o] Error 127

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem when first running upwelling test

#12 Unread post by kate »

Did you try what I suggest in my previous post? Don't mess with the MPI section of you aren't trying for MPI.

So you're getting nothing from "which ifort" from inside the makefile, but you are getting the correct path from outside. Here is where you need a crash course on Unix shells and environment variables, specifically the $PATH environment variable. Simpler to try my previous post.

rbani
Posts: 12
Joined: Thu Feb 27, 2014 1:14 am
Location: Mcgill University

Re: problem when first running upwelling test

#13 Unread post by rbani »

HI it seems that i do have the same problem, but i try as much as i can to fix it but still the same problem

So i m using cygwin on my windows, my header are as follow:

export ROMS_APPLICATION=UPWELLING

# Set a local environmental variable to define the path to the directories
# where all this project's files are kept.

export MY_ROOT_DIR=/home/roms
export MY_PROJECT_DIR=${MY_ROOT_DIR}/Projects/Upwelling

# The path to the user's local current ROMS source code.
#
# If using svn locally, this would be the user's Working Copy Path (WCPATH).
# Note that one advantage of maintaining your source code locally with svn
# is that when working simultaneously on multiple machines (e.g. a local
# workstation, a local cluster and a remote supercomputer) you can checkout
# the latest release and always get an up-to-date customized source on each
# machine. This script is designed to more easily allow for differing paths
# to the code and inputs on differing machines.

#export MY_ROMS_SRC=${MY_ROOT_DIR}/branches/arango
export MY_ROMS_SRC=${MY_ROOT_DIR}/trunk


and when i compile it returns :

$ ./build.bash
rm -f -r core *.ipo /home/roms/Projects/Upwelling/Build /home/make_macros.mk
In file included from Compilers/make_macros.h:16:0:
Compilers/../ROMS/Include/cppdefs.h:632:22: fatal error: /home/roms/Projects/Upwelling/upwelling.h: No such file or directory
# include ROMS_HEADER
^
compilation terminated.
makefile:238: INCLUDING FILE /home/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
cp -f /usr/local/include/netcdf.mod /home/roms/Projects/Upwelling/Build
cp -f /usr/local/include/typesizes.mod /home/roms/Projects/Upwelling/Build
./ROMS/Bin/sfmakedepend --cpp --fext=f90 --file=- --objdir=/home/roms/Projects/Upwelling/Build -DROMS_HEADER="upwelling.h" -I ROMS/Include -I /home/roms/Projects/Upwelling -I ROMS/Nonlinear -I ROMS/Nonlinear/Biology -I ROMS/Nonlinear/Sediment -I ROMS/Utility -I ROMS/Drivers -I ROMS/Functionals -I /home/roms/Projects/Upwelling -I Master -I Compilers --silent --moddir /home/roms/Projects/Upwelling/Build ROMS/Nonlinear/mpdata_adiff.F ROMS/Nonlinear/vwalk_floats.F ROMS/Nonlinear/pre_step3d.F ROMS/Nonlinear/ini_fields.F ROMS/Nonlinear/wetdry.F ROMS/Nonlinear/v3dbc_im.F ROMS/Nonlinear/obc_adjust.F ROMS/Nonlinear/get_idata.F ROMS/Nonlinear/set_data.F ROMS/Nonlinear/rhs3d.F ROMS/Nonlinear/forcing.F ROMS/Nonlinear/radiation_stress.F ROMS/Nonlinear/t3dmix.F ROMS/Nonlinear/diag.F ROMS/Nonlinear/set_zeta.F ROMS/Nonlinear/rho_eos.F ROMS/Nonlinear/obc_volcons.F ROMS/Nonlinear/nesting.F ROMS/Nonlinear/get_data.F ROMS/Nonlinear/initial.F ROMS/Nonlinear/set_avg.F ROMS/Nonlinear/step3d_uv.F ROMS/Nonlinear/set_tides.F ROMS/Nonlinear/exchange_2d.F ROMS/Nonlinear/bvf_mix.F ROMS/Nonlinear/set_massflux.F ROMS/Nonlinear/omega.F ROMS/Nonlinear/t3dbc_im.F ROMS/Nonlinear/output.F ROMS/Nonlinear/step2d.F ROMS/Nonlinear/u3dbc_im.F ROMS/Nonlinear/hmixing.F ROMS/Nonlinear/main3d.F ROMS/Nonlinear/conv_bry2d.F ROMS/Nonlinear/conv_bry3d.F ROMS/Nonlinear/my25_corstep.F ROMS/Nonlinear/zetabc.F ROMS/Nonlinear/exchange_3d.F ROMS/Nonlinear/bulk_flux.F ROMS/Nonlinear/set_depth.F ROMS/Nonlinear/tkebc_im.F ROMS/Nonlinear/prsgrd.F ROMS/Nonlinear/step_floats.F ROMS/Nonlinear/bbl.F ROMS/Nonlinear/bc_bry3d.F ROMS/Nonlinear/frc_adjust.F ROMS/Nonlinear/lmd_vmix.F ROMS/Nonlinear/v2dbc_im.F ROMS/Nonlinear/u2dbc_im.F ROMS/Nonlinear/bc_bry2d.F ROMS/Nonlinear/conv_2d.F ROMS/Nonlinear/lmd_swfrac.F ROMS/Nonlinear/uv3dmix.F ROMS/Nonlinear/my25_prestep.F ROMS/Nonlinear/lmd_skpp.F ROMS/Nonlinear/wvelocity.F ROMS/Nonlinear/lmd_bkpp.F ROMS/Nonlinear/conv_3d.F ROMS/Nonlinear/bc_2d.F ROMS/Nonlinear/gls_prestep.F ROMS/Nonlinear/main2d.F ROMS/Nonlinear/interp_floats.F ROMS/Nonlinear/step3d_t.F ROMS/Nonlinear/set_vbc.F ROMS/Nonlinear/bc_3d.F ROMS/Nonlinear/gls_corstep.F ROMS/Nonlinear/Biology/biology_floats.F ROMS/Nonlinear/Biology/biology.F ROMS/Nonlinear/Sediment/sed_bed.F ROMS/Nonlinear/Sediment/sed_settling.F ROMS/Nonlinear/Sediment/sed_surface.F ROMS/Nonlinear/Sediment/sed_fluxes.F ROMS/Nonlinear/Sediment/sed_bedload.F ROMS/Nonlinear/Sediment/sediment.F ROMS/Functionals/analytical.F ROMS/Utility/def_diags.F ROMS/Utility/read_fltbiopar.F ROMS/Utility/get_2dfld.F ROMS/Utility/convolve.F ROMS/Utility/nf_fread3d.F ROMS/Utility/wrt_his.F ROMS/Utility/state_addition.F ROMS/Utility/nrutil.F ROMS/Utility/state_initialize.F ROMS/Utility/read_asspar.F ROMS/Utility/def_hessian.F ROMS/Utility/get_3dfld.F ROMS/Utility/inner2state.F ROMS/Utility/read_phypar.F ROMS/Utility/set_contact.F ROMS/Utility/ludcmp.F ROMS/Utility/ini_lanczos.F ROMS/Utility/abort.F ROMS/Utility/def_ini.F ROMS/Utility/obs_read.F ROMS/Utility/read_biopar.F ROMS/Utility/back_cost.F ROMS/Utility/checkadj.F ROMS/Utility/stats_modobs.F ROMS/Utility/get_cycle.F ROMS/Utility/nf_fread4d.F ROMS/Utility/wrt_diags.F ROMS/Utility/nf_fread3d_bry.F ROMS/Utility/lubksb.F ROMS/Utility/wrt_floats.F ROMS/Utility/extract_sta.F ROMS/Utility/wrt_info.F ROMS/Utility/state_scale.F ROMS/Utility/def_lanczos.F ROMS/Utility/regrid.F ROMS/Utility/nf_fwrite3d.F ROMS/Utility/packing.F ROMS/Utility/def_gst.F ROMS/Utility/def_mod.F ROMS/Utility/nf_fwrite3d_bry.F ROMS/Utility/read_sedpar.F ROMS/Utility/read_fltpar.F ROMS/Utility/get_bounds.F ROMS/Utility/wrt_hessian.F ROMS/Utility/wrt_gst.F ROMS/Utility/congrad.F ROMS/Utility/checkdefs.F ROMS/Utility/wpoints.F ROMS/Utility/sqlq.F ROMS/Utility/def_tides.F ROMS/Utility/zeta_balance.F ROMS/Utility/set_3dfld.F ROMS/Utility/normalization.F ROMS/Utility/posterior.F ROMS/Utility/set_2dfldr.F ROMS/Utility/obs_cost.F ROMS/Utility/checkerror.F ROMS/Utility/obs_depth.F ROMS/Utility/nf_fread2d.F ROMS/Utility/set_2dfld.F ROMS/Utility/nf_fread2d_bry.F ROMS/Utility/wrt_station.F ROMS/Utility/get_3dfldr.F ROMS/Utility/distribute.F ROMS/Utility/state_dotprod.F ROMS/Utility/get_ngfld.F ROMS/Utility/rep_matrix.F ROMS/Utility/frc_weak.F ROMS/Utility/vorticity.F ROMS/Utility/cost_grad.F ROMS/Utility/def_error.F ROMS/Utility/nf_fwrite4d.F ROMS/Utility/mp_exchange.F ROMS/Utility/def_avg.F ROMS/Utility/set_ngfldr.F ROMS/Utility/check_multifile.F ROMS/Utility/timers.F ROMS/Utility/ini_hmixcoef.F ROMS/Utility/gasdev.F ROMS/Utility/ran1.F ROMS/Utility/array_modes.F ROMS/Utility/interpolate.F ROMS/Utility/stiffness.F ROMS/Utility/get_state.F ROMS/Utility/dotproduct.F ROMS/Utility/ntimestep.F ROMS/Utility/shapiro.F ROMS/Utility/close_io.F ROMS/Utility/wrt_ini.F ROMS/Utility/extract_obs.F ROMS/Utility/get_grid.F ROMS/Utility/wrt_tides.F ROMS/Utility/get_2dfldr.F ROMS/Utility/nf_fwrite2d.F ROMS/Utility/nf_fwrite2d_bry.F ROMS/Utility/set_weights.F ROMS/Utility/ini_adjust.F ROMS/Utility/get_ngfldr.F ROMS/Utility/checkvars.F ROMS/Utility/set_masks.F ROMS/Utility/get_varcoords.F ROMS/Utility/def_impulse.F ROMS/Utility/def_dim.F ROMS/Utility/read_stapar.F ROMS/Utility/def_var.F ROMS/Utility/inquire.F ROMS/Utility/wrt_error.F ROMS/Utility/get_date.F ROMS/Utility/wrt_avg.F ROMS/Utility/posterior_var.F ROMS/Utility/def_rst.F ROMS/Utility/white_noise.F ROMS/Utility/def_norm.F ROMS/Utility/mp_routines.F ROMS/Utility/state_copy.F ROMS/Utility/def_info.F ROMS/Utility/lbc.F ROMS/Utility/def_his.F ROMS/Utility/random_ic.F ROMS/Utility/def_floats.F ROMS/Utility/state_product.F ROMS/Utility/cgradient.F ROMS/Utility/erf.F ROMS/Utility/get_gst.F ROMS/Utility/ran_state.F ROMS/Utility/strings.F ROMS/Utility/set_scoord.F ROMS/Utility/sum_grad.F ROMS/Utility/metrics.F ROMS/Utility/uv_rotate.F ROMS/Utility/read_couplepar.F ROMS/Utility/set_3dfldr.F ROMS/Utility/wrt_impulse.F ROMS/Utility/set_diags.F ROMS/Utility/obs_initial.F ROMS/Utility/def_station.F ROMS/Utility/set_ngfld.F ROMS/Utility/inp_par.F ROMS/Utility/grid_coords.F ROMS/Utility/wrt_rst.F ROMS/Utility/obs_write.F ROMS/Modules/mod_coupling.F ROMS/Modules/mod_floats.F ROMS/Modules/mod_clima.F ROMS/Modules/mod_netcdf.F ROMS/Modules/mod_coupler.F ROMS/Modules/mod_param.F ROMS/Modules/mod_iounits.F ROMS/Modules/mod_diags.F ROMS/Modules/mod_biology.F ROMS/Modules/mod_stepping.F ROMS/Modules/mod_kinds.F ROMS/Modules/mod_bbl.F ROMS/Modules/mod_behavior.F ROMS/Modules/mod_eoscoef.F ROMS/Modules/mod_forces.F ROMS/Modules/mod_average.F ROMS/Modules/mod_nesting.F ROMS/Modules/mod_ncparam.F ROMS/Modules/mod_ocean.F ROMS/Modules/mod_parallel.F ROMS/Modules/mod_sediment.F ROMS/Modules/mod_boundary.F ROMS/Modules/mod_grid.F ROMS/Modules/mod_tides.F ROMS/Modules/mod_strings.F ROMS/Modules/mod_eclight.F ROMS/Modules/mod_arrays.F ROMS/Modules/mod_fourdvar.F ROMS/Modules/mod_scalars.F ROMS/Modules/mod_sources.F ROMS/Modules/mod_storage.F ROMS/Modules/mod_sedbed.F ROMS/Modules/mod_mixing.F Master/ocean_control.F Master/esmf_roms.F Master/ocean_coupler.F Master/roms_export.F Master/master.F Master/propagator.F Master/roms_import.F > /home/roms/Projects/Upwelling/Build/MakeDepend
cp -p /home/make_macros.mk /home/roms/Projects/Upwelling/Build
In file included from Compilers/make_macros.h:16:0:
Compilers/../ROMS/Include/cppdefs.h:632:22: fatal error: /home/roms/Projects/Upwelling/upwelling.h: No such file or directory
# include ROMS_HEADER
^
compilation terminated.
makefile:234: INCLUDING FILE /home/roms/Projects/Upwelling/Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
/usr/bin/cpp -P -traditional -DCYGWIN -DX86_64 -DGFORTRAN -D'ROOT_DIR="/home/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/roms/Projects/Upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/roms/Projects/Upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="718"' -IROMS/Include -I/home/roms/Projects/Upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/roms/Projects/Upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/roms/Projects/Upwelling"' ROMS/Utility/def_diags.F > /home/roms/Projects/Upwelling/Build/def_diags.f90
In file included from ROMS/Utility/def_diags.F:2:0:
ROMS/Include/cppdefs.h:632:0: fatal error: /home/roms/Projects/Upwelling/upwelling.h: No such file or directory
# include ROMS_HEADER
^
compilation terminated.
ROMS/Utility/Module.mk:15: recipe for target '/home/roms/Projects/Upwelling/Build/def_diags.f90' failed
make: *** [/home/roms/Projects/Upwelling/Build/def_diags.f90] Error 1




Any idea what is the problem
thank you.

User avatar
arango
Site Admin
Posts: 1360
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: problem when first running upwelling test

#14 Unread post by arango »

ROMS/Include/cppdefs.h:625:0: fatal error: /Projects/upwelling/upwelling.h: No such file or directory
compilation terminated.
make: *** [/Projects/upwelling/Build/abort.f90] Error 1
The compiler is telling you what the error is. It cannot find the ROMS header file for this application: /Projects/upwelling/upwelling.h. It cannot be more simpler than that :!:

:idea: Read the errors that the compiler is giving you...

Post Reply