I am not familiar with using Windows Subsystem for Linux (WSL).
Please see the following software requirements for CMAQ:
<!-- BEGIN COMMENT -->
[<< Previous Chapter](CMAQ_UG_ch02_program_structure.md)- [Home](README.md) - [Next Chapter >>](CMAQ_UG_ch04_model_inputs.md)
<!-- END COMMENT -->
# 3. Preparing Compute Environment for CMAQ Simulations
## 3.1 Introduction
In this chapter the user will learn basic hardware and software requirements to run CMAQ. In addition, if the user does not have the required software, this chapter provides links to download the required software.
## 3.2 Hardware Requirements
The suggested hardware requirements for running the CMAQ Southeast Benchmark case on a Linux workstation are:
- 8 processors
- 4 GB RAM
- 400 GB hard drive storage
This file has been truncated. show original
A recent post from @barronh indicates that CMAQ scripts require tcsh, not csh, not bash.
Short Answer
I think your machine uses a true csh, which does not allow arguments to source. Many modern day systems symbolically link csh to tcsh, which does allow arguments to source. If you have tcsh on your machine, change csh to tcsh in any/all the scripts and it should work.
Longer Answer
My guess is that this is a csh or tcsh or version issue. For example, on our computational cluster csh is really a symbolic link to tcsh.
ls -lh $(which csh)
lrwxrwxrwx 1 root root 4 2021-11-08 06:37 /u…
You may be able to following the instructions for installing the compilers and libraries for WRF on WSL. CMAQ uses many of the same underlying libraries as WRF. However, you will need tcsh and you will also need to install I/O API before you can build and run CMAQ.
0_install_WRF_on_WSL2.md
# Install the WRF Model in WSL2
This section will explain on how to install the Weather Research and Forecasting ([WRF](https://www.mmm.ucar.edu/models/wrf)) Model inside Windows Subsystem for Linux (WSL) 2. This step-by-step guide was tested using Windows 11 with WSL2 - Debian 12 enabled running on ThinkStation P720.
--<br>
Benny Istanto, Climate Geographer<br>
GOST/DECSC/DECDG, The World Bank<br>
## Index
* [1. Working Directory](#1-working-directory)
This file has been truncated. show original
fortran-c-test.sh
#!/bin/bash
# System Environment Tests
# Test1
echo "Test #1: Fixed Format Fortran Test"
gfortran TEST_1_fortran_only_fixed.f
./a.out
echo ""
# Test2
echo "Test #2: Free Format Fortran"
This file has been truncated. show original
fortran-lib-test.sh
#!/bin/bash
# Library Compatibility Tests
# Test1
echo "Test #1: Fortran + C + NetCDF"
echo "The NetCDF-only test requires the netcdf.inc file from the NETCDF package be in this directory. Copying the file."
cp ${NETCDF}/include/netcdf.inc .
echo "Compile the Fortran and C codes for the purpose of this test (the -c option says to not try to build an executable)."
gfortran -c 01_fortran+c+netcdf_f.f
gcc -c 01_fortran+c+netcdf_c.c
gfortran 01_fortran+c+netcdf_f.o 01_fortran+c+netcdf_c.o -L${NETCDF}/lib -lnetcdff -lnetcdf
This file has been truncated. show original
There are more than three files. show original