Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ciemat laz #180

Open
wants to merge 74 commits into
base: develop
Choose a base branch
from
Open

Ciemat laz #180

wants to merge 74 commits into from

Conversation

lazersos
Copy link
Collaborator

@lazersos lazersos commented Jul 13, 2023

This update adds the interfaces for KNOSOS to the STELLOPT repository without including the KNOSOS source code. You should now be able to link to the external sources compiled from the KNOSOS branch (Lazerson_SOPT) branch. We've also removed the STELLA sources but this code can also be included in a similar fashion.

Closes issue #174

joseluisvelasco and others added 30 commits December 2, 2020 13:39
concflicts were sovlved manually
Edi

Conflicts:
	STELLOPTV2/Sources/General/stellopt_dkes.f90
	STELLOPTV2/Sources/Modules/stellopt_targets.f90
	build_all
@lazersos lazersos added the enhancement New feature or request label Jul 13, 2023
@lazersos lazersos self-assigned this Jul 13, 2023
@joseluisvelasco
Copy link
Collaborator

Great! Could you walk me through how to compile it now? Not sure what file should I include and where.

mpif90 -g -O2 -I/usr/include -I/mnt/lustre/ohpc/admin/spack/0.12.1/opt/spack/linux-centos7-x86_64/intel-19.0.5.281/openblas-0.3.6-bwopn5fpda3kcxclpyto2sqybautaofg//include/ -I./include -I/mnt/lustre/home/u6156/STELLOPT/CIEMAT/xintel/libstell_dir -I/mnt/lustre/ohpc/admin/spack/0.12.1/opt/spack/linux-centos7-x86_64/intel-19.0.5.281/netcdf-4.6.1-q6eitnlgurqlhyr6u2glnrtuemdagb3b//include -I/mnt/lustre/ohpc/admin/spack/0.12.1/opt/spack/linux-centos7-x86_64/intel-19.0.5.281/hdf5-1.10.4-2cu2chyblcoo4shx7i3mdewchzsk376r/include -DH5_USE_16_API -I../../VMEC2000/Release -I../../BEAMS3D/Release -I../../BOOTSJ/Release -I../../BNORM/Release -I../../BOOZ_XFORM/Release -I../../COBRAVMEC/Release -I../../DIAGNO/Release -I../../FIELDLINES/Release -I../../J_INVARIANT/Release -I../../MAKEGRID/Release -I../../DKES/Release -I../../NEO/Release -I../../KNOSOS/Release -I../../STELLA/Release -I/mnt/lustre/ohpc/admin/spack/0.12.1/opt/spack/linux-centos7-x86_64/intel-19.0.5.281/netcdf-4.6.1-q6eitnlgurqlhyr6u2glnrtuemdagb3b//include -I/mnt/lustre/ohpc/admin/spack/0.12.1/opt/spack/linux-centos7-x86_64/intel-19.0.5.281/hdf5-1.10.4-2cu2chyblcoo4shx7i3mdewchzsk376r/include -DH5_USE_16_API -I.. -c ../Sources/Chisq/chisq_knosos.f90
chisq_knosos.f90(27): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [KNOSOS_STELLOPT_MOD]
USE knosos_stellopt_mod

@lazersos
Copy link
Collaborator Author

@joseluisvelasco So you need to look at SHARE/make.machine file. In there you'll now find a section:

#######################################################################
#            KNOSOS Options
#######################################################################
  LKNOSOS= T
  KNOSOS_DIR = $(KNOSOS_PATH)
  KNOSOS_INC = -I$(KNOSOS_DIR)/SOURCES
  LIB_KNOSOS = libknosos.a
  KNOSOS_LIB = $(KNOSOS_PATH)/SOURCES/$(LIB_KNOSOS)

You need to set LKNOSOS=T and in your shell define a variable KNOSOS_PATH which points to the root directory of the KNOSOS code (which you need to compile first). Then you simply build stellopt as usual.

@lazersos
Copy link
Collaborator Author

Also make sure you're on the correct branches:

  • KNOSOS: Lazerson_SOPT
  • STELLOPT: CIEMAT_Laz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants