Skip to content

Commit

Permalink
it ran
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Jul 12, 2023
1 parent 102ca6a commit e932cf6
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
35 changes: 35 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,41 @@ RUN cd pnetcdf-1.12.3 && \
make -j 8 install && \
ldconfig

ENV FC=gfortran

###################################################
## Build and install json-fortran
###################################################
RUN curl -LO https://github.com/jacobwilliams/json-fortran/archive/8.2.0.tar.gz \
&& tar -zxvf 8.2.0.tar.gz \
&& cd json-fortran-8.2.0 \
&& mkdir build \
&& cd build \
&& cmake -D SKIP_DOC_GEN:BOOL=TRUE .. \
&& make install -j 8

###################################################
## Build and install MUSICA
###################################################

RUN echo "asdf"

RUN git clone https://github.com/NCAR/musica.git
RUN mkdir /musica/build \
&& cd /musica/build \
&& export JSON_FORTRAN_HOME="/usr/local/jsonfortran-gnu-8.2.0" \
&& cmake \
-D ENABLE_TESTS=OFF \
-D ENABLE_TUVX=OFF \
.. \
&& make install -j 8

###################################################
## Add symlinks
###################################################
RUN ln -s /usr/local/jsonfortran-gnu-8.2.0/lib/libjsonfortran.a /usr/local/lib/libjsonfortran.a
RUN ln -s /usr/local/musica-0.3.0/lib64/libmusica.a /usr/local/lib/libmusica.a

###################################################
## Build CAM-SIMA
###################################################
Expand Down
2 changes: 1 addition & 1 deletion Externals.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ externals = Externals.cfg
required = True

[cmeps]
tag = cmeps0.14.24
tag = cmeps0.14.34
protocol = git
repo_url = https://github.com/ESCOMP/CMEPS.git
local_path = components/cmeps
Expand Down
12 changes: 12 additions & 0 deletions cime_config/config_component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,18 @@
<desc>User mods to apply to specific compset matches. </desc>
</entry>

<entry id="CAM_LINKED_LIBS">
<type>char</type>
<valid_values></valid_values>
<default_value>-lmusica -ljsonfortran</default_value>
<group>build_component_cam</group>
<file>env_build.xml</file>
<desc>
CAMSIMA linked libraries. The libraries are built by CAMSIMA's buildlib script and should be included
during linking of the model executable.
</desc>
</entry>

<help>
=========================================
CAM naming conventions
Expand Down

0 comments on commit e932cf6

Please sign in to comment.